diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 12:50:21 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 14:12:30 +0200 |
commit | f81352f531b22d02b1b80cfbd6daed809ea8cf5d (patch) | |
tree | f32f4ea1ff6388c330a08932730ec596e944c4d0 /spec | |
parent | 20d4ca4cc3599b4335b73fd7c3bb0354efe397b4 (diff) | |
download | gitlab-ce-f81352f531b22d02b1b80cfbd6daed809ea8cf5d.tar.gz |
Fix minor styling issues from code review
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/tags_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/tags_spec.rb b/spec/requests/api/tags_spec.rb index acbd9c3e332..9f9c3b1cf4c 100644 --- a/spec/requests/api/tags_spec.rb +++ b/spec/requests/api/tags_spec.rb @@ -40,17 +40,17 @@ describe API::API, api: true do end end - describe "GET /projects/:id/repository/tags/:tag_name" do + describe 'GET /projects/:id/repository/tags/:tag_name' do let(:tag_name) { project.repository.tag_names.sort.reverse.first } - it 'should return a specific tag' do + it 'returns a specific tag' do get api("/projects/#{project.id}/repository/tags/#{tag_name}", user) expect(response.status).to eq(200) expect(json_response['name']).to eq(tag_name) end - it 'should return 404 for an invalid tag name' do + it 'returns 404 for an invalid tag name' do get api("/projects/#{project.id}/repository/tags/foobar", user) expect(response.status).to eq(404) |