2018-02-20 01:44:51 -05:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
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
|