Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-04-18 21:01:32 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-18 21:01:32 +0300
commit7fa3a1c05c9ab04d59c9000e69881cd1cbeeaf1d (patch)
tree821652ab4fe8ff52ff1a0e245dc6a2044c7d7b11 /spec
parentfa7d99ebd4cd86134e33f9f79e2b92f50de3af6c (diff)
Ensure that annoation is presented properly
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/tags_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/requests/api/tags_spec.rb b/spec/requests/api/tags_spec.rb
index 9f9c3b1cf4c..edcb2bedbf7 100644
--- a/spec/requests/api/tags_spec.rb
+++ b/spec/requests/api/tags_spec.rb
@@ -32,9 +32,11 @@ describe API::API, api: true do
it "should return an array of project tags with release info" do
get api("/projects/#{project.id}/repository/tags", user)
+
expect(response.status).to eq(200)
expect(json_response).to be_an Array
expect(json_response.first['name']).to eq(tag_name)
+ expect(json_response.first['message']).to eq('Version 1.1.0')
expect(json_response.first['release']['description']).to eq(description)
end
end