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

Avoid RoutingError to break spec because missing avatar

Oliver Günther3c9d32018db2
diff --git a/spec/features/members/invitation_spec.rb b/spec/features/members/invitation_spec.rb
index eff868e7fe9..d84ca736013 100644
--- a/spec/features/members/invitation_spec.rb
+++ b/spec/features/members/invitation_spec.rb
@@ -40,6 +40,15 @@ feature 'invite user via email', type: :feature, js: true do
end
context 'with a new user' do
+ before do
+ @old_value = Capybara.raise_server_errors
+ Capybara.raise_server_errors = false
+ end
+
+ after do
+ Capybara.raise_server_errors = @old_value
+ end
+
scenario 'adds the invited user to the project' do
members_page.visit!
click_on 'Add member'