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 redirect for oauth controller

Klaus Zanders5e30f4b47289
diff --git a/spec/controllers/oauth/grants_controller_spec.rb b/spec/controllers/oauth/grants_controller_spec.rb
index b5d75f5625f..3896eeb695d 100644
--- a/spec/controllers/oauth/grants_controller_spec.rb
+++ b/spec/controllers/oauth/grants_controller_spec.rb
@@ -58,7 +58,7 @@ RSpec.describe OAuth::GrantsController do
it do
post :revoke_application, params: { application_id: 1 }
expect(flash[:notice]).to include "Foo"
- expect(response).to redirect_to controller: "/my", action: :access_token
+ expect(response).to redirect_to("/my/access_tokens")
end
end
end