Commit 28de31f5 authored by Sean Edge's avatar Sean Edge

Fix broken repositories_spec test for creating new tags.

parent 2d4ba267
...@@ -27,12 +27,10 @@ describe API::API, api: true do ...@@ -27,12 +27,10 @@ describe API::API, api: true do
it 'should create a new tag' do it 'should create a new tag' do
post api("/projects/#{project.id}/repository/tags", user), post api("/projects/#{project.id}/repository/tags", user),
tag_name: 'v1.0.0', tag_name: 'v1.0.0',
ref: '621491c677087aa243f165eab467bfdfbee00be1' ref: 'master'
response.status.should == 201 response.status.should == 201
json_response.first['name'].should == 'v1.0.0' json_response['name'].should == 'v1.0.0'
json_response['commit']['id'].should ==
'621491c677087aa243f165eab467bfdfbee00be1'
end end
it 'should deny for user without push access' do it 'should deny for user without push access' do
post api("/projects/#{project.id}/repository/tags", user2), post api("/projects/#{project.id}/repository/tags", user2),
......
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