Commit 744fc7b7 authored by Arturo Herrero's avatar Arturo Herrero

Include Gitlab::Routing.url_helpers in spec

This fixes the spec error locally as the route helpers are not defined
by default.
parent 19c8b993
......@@ -51,7 +51,7 @@ RSpec.describe Projects::Integrations::Jira::IssuesController do
it 'redirects to the new issue tracker from the old one' do
get :index, params: { namespace_id: project.namespace, project_id: project }
expect(response).to redirect_to(project_integrations_jira_issues_path(new_project))
expect(response).to redirect_to(Gitlab::Routing.url_helpers.project_integrations_jira_issues_path(new_project))
expect(response).to have_gitlab_http_status(:moved_permanently)
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment