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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fix factories
Klaus Zandersd2eada09adae
diff --git a/modules/two_factor_authentication/spec/controllers/two_factor_authentication/authentication_controller_spec.rb b/modules/two_factor_authentication/spec/controllers/two_factor_authentication/authentication_controller_spec.rbindex a8233f4c85d..87229cd231f 100644--- a/modules/two_factor_authentication/spec/controllers/two_factor_authentication/authentication_controller_spec.rb+++ b/modules/two_factor_authentication/spec/controllers/two_factor_authentication/authentication_controller_spec.rb@@ -63,7 +63,7 @@ RSpec.describe TwoFactorAuthentication::AuthenticationController, with_settings:endcontext 'with a non-default device' do- let!(:device) { create(:two_factor_authentication_device_sms, user:, default: false, channel: :sms) }+ let!(:device) { create(:two_factor_authentication_device_sms, user:, make_default: false, channel: :sms) }before dosession[:authenticated_user_id] = user.iddiff --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.rbindex 661aaf49356..33c211ce6b8 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@@ -7,7 +7,7 @@ FactoryBot.define doidentifier { 'Phone number (+49 123456789)' }transient do- make_default { false }+ make_default { true }endcallback(:after_create) do |device, evaluator|@@ -22,7 +22,7 @@ FactoryBot.define doidentifier { 'TOTP device' }transient do- make_default { false }+ make_default { true }endcallback(:after_create) do |device, evaluator|@@ -40,7 +40,7 @@ FactoryBot.define dowebauthn_public_key { "bar" }transient do- make_default { false }+ make_default { true }endcallback(:after_create) do |device, evaluator|