Commit 28de31f5200d908551d8372fed7511df80e284fd
1 parent
2d4ba267
Exists in
spb-stable
and in
2 other branches
Fix broken repositories_spec test for creating new tags.
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
spec/requests/api/repositories_spec.rb
@@ -27,12 +27,10 @@ describe API::API, api: true do | @@ -27,12 +27,10 @@ describe API::API, api: true do | ||
27 | it 'should create a new tag' do | 27 | it 'should create a new tag' do |
28 | post api("/projects/#{project.id}/repository/tags", user), | 28 | post api("/projects/#{project.id}/repository/tags", user), |
29 | tag_name: 'v1.0.0', | 29 | tag_name: 'v1.0.0', |
30 | - ref: '621491c677087aa243f165eab467bfdfbee00be1' | 30 | + ref: 'master' |
31 | 31 | ||
32 | response.status.should == 201 | 32 | response.status.should == 201 |
33 | - json_response.first['name'].should == 'v1.0.0' | ||
34 | - json_response['commit']['id'].should == | ||
35 | - '621491c677087aa243f165eab467bfdfbee00be1' | 33 | + json_response['name'].should == 'v1.0.0' |
36 | end | 34 | end |
37 | it 'should deny for user without push access' do | 35 | it 'should deny for user without push access' do |
38 | post api("/projects/#{project.id}/repository/tags", user2), | 36 | post api("/projects/#{project.id}/repository/tags", user2), |