Skip to content
Snippets Groups Projects
Commit 28de31f5 authored by Sean Edge's avatar Sean Edge
Browse files

Fix broken repositories_spec test for creating new tags.

parent 2d4ba267
No related branches found
No related tags found
1 merge request!7014Add CreateTagService. Use new service to allow tag creation through API.
Loading
Loading
@@ -27,12 +27,10 @@ describe API::API, api: true do
it 'should create a new tag' do
post api("/projects/#{project.id}/repository/tags", user),
tag_name: 'v1.0.0',
ref: '621491c677087aa243f165eab467bfdfbee00be1'
ref: 'master'
 
response.status.should == 201
json_response.first['name'].should == 'v1.0.0'
json_response['commit']['id'].should ==
'621491c677087aa243f165eab467bfdfbee00be1'
json_response['name'].should == 'v1.0.0'
end
it 'should deny for user without push access' do
post api("/projects/#{project.id}/repository/tags", user2),
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment