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 project path expectations in features

Alexander Brandon Coles0bde357dac41
diff --git a/spec/features/global_roles/global_create_project_spec.rb b/spec/features/global_roles/global_create_project_spec.rb
index 93250f754ff..0a81768404e 100644
--- a/spec/features/global_roles/global_create_project_spec.rb
+++ b/spec/features/global_roles/global_create_project_spec.rb
@@ -91,7 +91,7 @@ RSpec.describe "Global role: Global Create project",
click_on "Create"
- expect(page).to have_current_path "/projects/new-project-name/"
+ expect(page).to have_current_path "/projects/new-project-name"
end
end
diff --git a/spec/features/work_packages/switching_to_project_from_work_package_spec.rb b/spec/features/work_packages/switching_to_project_from_work_package_spec.rb
index 8c8a590e928..36d7817e3cd 100644
--- a/spec/features/work_packages/switching_to_project_from_work_package_spec.rb
+++ b/spec/features/work_packages/switching_to_project_from_work_package_spec.rb
@@ -29,7 +29,6 @@ RSpec.describe "Switching to project from work package", :js do
expect(link[:href]).to include(project_path(project.id))
link.click
- # Redirection causes a trailing / on the path
- expect(page).to have_current_path("#{project_path(project.id)}/")
+ expect(page).to have_current_path project_path(project.id)
end
end