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

we have to use with_config (either that or with_settings) for both options as with_settings interferes with with_config

Markus Kahlc7edd71b73d8
diff --git a/spec/features/auth/omniauth_spec.rb b/spec/features/auth/omniauth_spec.rb
index f2b884f7ba5..3957086fbd9 100644
--- a/spec/features/auth/omniauth_spec.rb
+++ b/spec/features/auth/omniauth_spec.rb
@@ -121,8 +121,7 @@ RSpec.describe "Omniauth authentication" do
end
describe "sign out a user with direct login and login required",
- with_config: { omniauth_direct_login_provider: "developer" },
- with_settings: { login_required?: true } do
+ with_config: { omniauth_direct_login_provider: "developer", login_required: true } do
it "shows a notice that the user has been logged out" do
visit signout_path