diff options
author | Sean Edge <asedge@gmail.com> | 2014-05-28 11:14:51 -0400 |
---|---|---|
committer | Sean Edge <asedge@gmail.com> | 2014-05-28 11:14:51 -0400 |
commit | 28de31f5200d908551d8372fed7511df80e284fd (patch) | |
tree | d1542e60a940b3c4ddfe93d33f7c459ded83282d /spec/requests | |
parent | 2d4ba2679a3bb2a26adf6c013d5d4be19ed8da94 (diff) | |
download | gitlab-ce-28de31f5200d908551d8372fed7511df80e284fd.tar.gz |
Fix broken repositories_spec test for creating new tags.
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/repositories_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/requests/api/repositories_spec.rb b/spec/requests/api/repositories_spec.rb index d8348be2332..173c4ef734b 100644 --- a/spec/requests/api/repositories_spec.rb +++ b/spec/requests/api/repositories_spec.rb @@ -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), |