2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-02-20 01:44:51 -05:00
|
|
|
RSpec.describe UserSecondFactor do
|
|
|
|
describe '.methods' do
|
|
|
|
it 'should retain the right order' do
|
|
|
|
expect(described_class.methods[:totp]).to eq(1)
|
2018-06-28 04:12:32 -04:00
|
|
|
expect(described_class.methods[:backup_codes]).to eq(2)
|
2018-02-20 01:44:51 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|