Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Revert factory changes

Klaus Zanders749c25ceb7c9
diff --git a/modules/two_factor_authentication/spec/factories/two_factor_authentication_device_factory.rb b/modules/two_factor_authentication/spec/factories/two_factor_authentication_device_factory.rb
index 33c211ce6b8..50ff998750b 100644
--- a/modules/two_factor_authentication/spec/factories/two_factor_authentication_device_factory.rb
+++ b/modules/two_factor_authentication/spec/factories/two_factor_authentication_device_factory.rb
@@ -3,11 +3,12 @@ FactoryBot.define do
user
channel { :sms }
active { true }
+ default { true }
phone_number { '+49 123456789' }
identifier { 'Phone number (+49 123456789)' }
transient do
- make_default { true }
+ make_default { false }
end
callback(:after_create) do |device, evaluator|
@@ -19,10 +20,11 @@ FactoryBot.define do
user
channel { :totp }
active { true }
+ default { true }
identifier { 'TOTP device' }
transient do
- make_default { true }
+ make_default { false }
end
callback(:after_create) do |device, evaluator|
@@ -34,13 +36,14 @@ FactoryBot.define do
user
channel { :webauthn }
active { true }
+ default { true }
identifier { 'WebAuthn device' }
webauthn_external_id { "foo" }
webauthn_public_key { "bar" }
transient do
- make_default { true }
+ make_default { false }
end
callback(:after_create) do |device, evaluator|