diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-15 13:15:52 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-05-04 18:19:13 +0300 |
commit | 44f89eafc08a7967544429a3f930354a5f9bbbaf (patch) | |
tree | 7010adf8f188edcb8afd281a99970563b13d2980 /spec/requests/api/tags_spec.rb | |
parent | 72e4bd5fc40c3b61792bf5f8897ab881775c7146 (diff) |
Use Rugged's TagCollection#create instead of gitlab-shell's Repository#add_tag for better performance
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests/api/tags_spec.rb')
-rw-r--r-- | spec/requests/api/tags_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/tags_spec.rb b/spec/requests/api/tags_spec.rb index edcb2bedbf7..12e170b232f 100644 --- a/spec/requests/api/tags_spec.rb +++ b/spec/requests/api/tags_spec.rb @@ -147,7 +147,7 @@ describe API::API, api: true do tag_name: 'v8.0.0', ref: 'master' expect(response.status).to eq(400) - expect(json_response['message']).to eq('Tag already exists') + expect(json_response['message']).to eq('Tag v8.0.0 already exists') end it 'should return 400 if ref name is invalid' do @@ -155,7 +155,7 @@ describe API::API, api: true do tag_name: 'mytag', ref: 'foo' expect(response.status).to eq(400) - expect(json_response['message']).to eq('Invalid reference name') + expect(json_response['message']).to eq('Target foo is invalid') end end |