2019-04-30 10:27:42 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2018-02-20 14:44:51 +08: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 10:12:32 +02:00
|
|
|
expect(described_class.methods[:backup_codes]).to eq(2)
|
2018-02-20 14:44:51 +08:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|