diff options
author | Petheo Bence <b.petheo@mito.hu> | 2015-09-03 15:38:54 +0200 |
---|---|---|
committer | Petheo Bence <b.petheo@mito.hu> | 2015-09-10 18:22:57 +0200 |
commit | 9bda4b8d88fc93b8938d8c4d001d6660d112ae1c (patch) | |
tree | 9702bacad0ffd6ebc3671233660381faacadd051 /spec/requests | |
parent | 1c3c3ba512a85cdf0c09ac4750bcd7955009d6d4 (diff) | |
download | gitlab-ce-9bda4b8d88fc93b8938d8c4d001d6660d112ae1c.tar.gz |
Added service API endpoint to retrieve service parameters
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/services_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/requests/api/services_spec.rb b/spec/requests/api/services_spec.rb index c297904614a..fb3b235446f 100644 --- a/spec/requests/api/services_spec.rb +++ b/spec/requests/api/services_spec.rb @@ -47,5 +47,15 @@ describe API::API, api: true do expect(project.send(service_method).activated?).to be_falsey end end + + describe "GET /projects/:id/services/#{service.dasherize}" do + include_context service + + it "should get #{service} settings" do + get api("/projects/#{project.id}/services/#{dashed_service}", user) + + expect(response.status).to eq(200) + end + end end end |