Commit e537b1ea authored by Eugenia Grieff's avatar Eugenia Grieff

Fix authorize route to match Workhorse route

parent 296275d8
...@@ -15,7 +15,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -15,7 +15,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
resources :requirements, only: [:index] do resources :requirements, only: [:index] do
collection do collection do
post :import_csv post :import_csv
post :authorize post 'import_csv/authorize', to: 'requirements#authorize'
end end
end end
end end
......
...@@ -115,7 +115,7 @@ RSpec.describe Projects::RequirementsManagement::RequirementsController do ...@@ -115,7 +115,7 @@ RSpec.describe Projects::RequirementsManagement::RequirementsController do
describe 'POST #authorize' do describe 'POST #authorize' do
subject do subject do
post authorize_project_requirements_management_requirements_path(project), post import_csv_authorize_project_requirements_management_requirements_path(project),
headers: workhorse_headers headers: workhorse_headers
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