diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2016-08-02 13:37:04 -0400 |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2016-08-24 10:32:31 -0400 |
commit | e43c4060b67c1996b917bc00afa72122d1d00004 (patch) | |
tree | e9d170a12995b3ce7f330908d12995fd3f830b01 /spec/requests/api/merge_requests_spec.rb | |
parent | 9b470aebb993d7a5745f0e9fc17b207fe46b16fe (diff) | |
download | gitlab-ce-e43c4060b67c1996b917bc00afa72122d1d00004.tar.gz |
api: expose web_url for project entities
This allows web hooks to have a URL back to entities without having to
generate it themselves.
Diffstat (limited to 'spec/requests/api/merge_requests_spec.rb')
-rw-r--r-- | spec/requests/api/merge_requests_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/merge_requests_spec.rb b/spec/requests/api/merge_requests_spec.rb index 617600d6173..baff872e28e 100644 --- a/spec/requests/api/merge_requests_spec.rb +++ b/spec/requests/api/merge_requests_spec.rb @@ -33,6 +33,7 @@ describe API::API, api: true do expect(json_response).to be_an Array expect(json_response.length).to eq(3) expect(json_response.last['title']).to eq(merge_request.title) + expect(json_response.last).to have_key('web_url') end it "returns an array of all merge_requests" do |