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

Clean up routes

Oliver Günther99010500eefa
diff --git a/modules/team_planner/config/routes.rb b/modules/team_planner/config/routes.rb
index 38056a185d3..45b91bc3547 100644
--- a/modules/team_planner/config/routes.rb
+++ b/modules/team_planner/config/routes.rb
@@ -5,7 +5,6 @@ Rails.application.routes.draw do
collection do
get "/", to: "team_planner/team_planner#overview"
get "/new", to: "team_planner/team_planner#new"
- get "/upsell", to: "team_planner/team_planner#upsell", as: :upsell
end
end
@@ -16,7 +15,6 @@ Rails.application.routes.draw do
as: :team_planners do
collection do
get "menu" => "team_planner/menus#show"
- get "/upsell", to: "team_planner/team_planner#upsell", as: :upsell
get "/new", to: "team_planner/team_planner#show", as: :new
end
diff --git a/modules/team_planner/spec/routing/team_planner_routing_spec.rb b/modules/team_planner/spec/routing/team_planner_routing_spec.rb
index ef5500f2413..c8efea61ed9 100644
--- a/modules/team_planner/spec/routing/team_planner_routing_spec.rb
+++ b/modules/team_planner/spec/routing/team_planner_routing_spec.rb
@@ -48,12 +48,6 @@ RSpec.describe "Team planner routing" do
end
context "with :project_id" do
- it "routes to team_planner#upsell" do
- expect(subject)
- .to route(:get, "/projects/foobar/team_planners/upsell")
- .to(controller: "team_planner/team_planner", action: :upsell, project_id: "foobar")
- end
-
it "routes to team_planner#show" do
expect(subject)
.to route(:get, "/projects/foobar/team_planners/new")
@@ -62,12 +56,6 @@ RSpec.describe "Team planner routing" do
end
context "without :project_id" do
- it "routes to team_planner#upsell" do
- expect(subject)
- .to route(:get, "/team_planners/upsell")
- .to(controller: "team_planner/team_planner", action: :upsell)
- end
-
it "routes to team_planner#new" do
expect(subject)
.to route(:get, "/team_planners/new")