Commit 28de31f5200d908551d8372fed7511df80e284fd

Authored by Sean Edge
1 parent 2d4ba267

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 27 it 'should create a new tag' do
28 28 post api("/projects/#{project.id}/repository/tags", user),
29 29 tag_name: 'v1.0.0',
30   - ref: '621491c677087aa243f165eab467bfdfbee00be1'
  30 + ref: 'master'
31 31  
32 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 34 end
37 35 it 'should deny for user without push access' do
38 36 post api("/projects/#{project.id}/repository/tags", user2),
... ...