Logo
Explore Help
Sign In
IntenseWebs/discourse
3
0
Fork 0
You've already forked discourse
mirror of https://github.com/discourse/discourse.git synced 2025-02-25 18:55:32 -06:00
Code Issues Packages Projects Releases Wiki Activity
Files
894586afa9cae1b797009a34dcf45a603cfe8815
discourse/spec/models/user_second_factor_spec.rb

11 lines
267 B
Ruby
Raw Normal View History

DEV: use #frozen_string_literal: true on all spec This change both speeds up specs (less strings to allocate) and helps catch cases where methods in Discourse are mutating inputs. Overall we will be migrating everything to use #frozen_string_literal: true it will take a while, but this is the first and safest move in this direction
2019-04-30 10:27:42 +10:00
# frozen_string_literal: true
Review Changes for https://github.com/discourse/discourse/pull/5612/commits/f4f8a293e74e6a37c7bee7645d9ca1d72a7d5bd3.
2018-02-20 14:44:51 +08:00
RSpec.describe UserSecondFactor do
DEV: Apply syntax_tree formatting to `spec/*`
2023-01-09 11:18:21 +00:00
describe ".methods" do
it "should retain the right order" do
Review Changes for https://github.com/discourse/discourse/pull/5612/commits/f4f8a293e74e6a37c7bee7645d9ca1d72a7d5bd3.
2018-02-20 14:44:51 +08:00
expect(described_class.methods[:totp]).to eq(1)
FEATURE: Second factor backup
2018-06-28 10:12:32 +02:00
expect(described_class.methods[:backup_codes]).to eq(2)
Review Changes for https://github.com/discourse/discourse/pull/5612/commits/f4f8a293e74e6a37c7bee7645d9ca1d72a7d5bd3.
2018-02-20 14:44:51 +08:00
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 397ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API