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

Fix test failing when run alone

Christophe Bliard1d92c2e7a50d
diff --git a/spec/features/auth/omniauth_spec.rb b/spec/features/auth/omniauth_spec.rb
index edeba26d312..94428089c7a 100644
--- a/spec/features/auth/omniauth_spec.rb
+++ b/spec/features/auth/omniauth_spec.rb
@@ -29,6 +29,9 @@
require 'spec_helper'
describe 'Omniauth authentication', type: :feature do
+ # Load ViewAccountLoginAuthProvider to have this spec passing
+ OpenProject::Hooks::ViewAccountLoginAuthProvider
+
# Running the tests inside docker changes the hostname. To accommodate that we changed
# the Capybara app_host, however this change was not being reflected in the Rails host,
# causing the redirect checks to fail below.