Commit 287cc838 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix build api specs after rebase

parent c4f6a935
......@@ -132,7 +132,7 @@ module API
# example Request:
# delete /projects/:id/build/:build_id/content
delete ':id/builds/:build_id/content' do
authorize_manage_builds!
authorize_update_builds!
build = get_build(params[:build_id])
return not_found!(build) unless build
......
......@@ -67,7 +67,7 @@ FactoryGirl.define do
build.artifacts_metadata =
fixture_file_upload(Rails.root.join('spec/fixtures/ci_build_artifacts_metadata.gz'),
' application/x-gzip')
'application/x-gzip')
build.save!
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