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 expectation

Christophe Bliard590aedca9940
diff --git a/spec/features/homescreen/index_spec.rb b/spec/features/homescreen/index_spec.rb
index 4fd76337a21..e35f6f3fb9f 100644
--- a/spec/features/homescreen/index_spec.rb
+++ b/spec/features/homescreen/index_spec.rb
@@ -67,7 +67,7 @@ describe 'Homescreen index' do
.to have_selector("a[href=\"#{OpenProject::Application.root_url}/projects/public-project\"]")
click_link "a link to the public project"
- expect(page).to have_current_path "#{project_path(project)}/"
+ expect(page).to have_current_path /#{Regexp.escape(project_path(project))}\/?$/
end
end
end