diff options
author | Sean Edge <asedge@gmail.com> | 2014-05-26 20:32:52 +0400 |
---|---|---|
committer | Sean Edge <asedge@gmail.com> | 2014-05-27 16:22:04 +0400 |
commit | a8f2977c6ac969e91180d06cd3c9ceffed48fd58 (patch) | |
tree | eebc2e080f4e55be1060007d0c6491856274ba9f /spec/requests/api/repositories_spec.rb | |
parent | 435740b8a261e664ba021536690395b4313846f3 (diff) |
More fixup for HoundCI. Fix up some small issues in docs.
Diffstat (limited to 'spec/requests/api/repositories_spec.rb')
-rw-r--r-- | spec/requests/api/repositories_spec.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/requests/api/repositories_spec.rb b/spec/requests/api/repositories_spec.rb index a61f6bbc8c8..d8348be2332 100644 --- a/spec/requests/api/repositories_spec.rb +++ b/spec/requests/api/repositories_spec.rb @@ -26,17 +26,18 @@ describe API::API, api: true do describe 'POST /projects/:id/repository/tags' do it 'should create a new tag' do post api("/projects/#{project.id}/repository/tags", user), - tag_name: 'v1.0.0', - ref: '621491c677087aa243f165eab467bfdfbee00be1' + tag_name: 'v1.0.0', + ref: '621491c677087aa243f165eab467bfdfbee00be1' response.status.should == 201 json_response.first['name'].should == 'v1.0.0' - json_response['commit']['id'].should == '621491c677087aa243f165eab467bfdfbee00be1' + json_response['commit']['id'].should == + '621491c677087aa243f165eab467bfdfbee00be1' end it 'should deny for user without push access' do post api("/projects/#{project.id}/repository/tags", user2), - tag_name: 'v1.0.0', - ref: '621491c677087aa243f165eab467bfdfbee00be1' + tag_name: 'v1.0.0', + ref: '621491c677087aa243f165eab467bfdfbee00be1' response.status.should == 403 end |