diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-09-13 20:28:29 +0200 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2016-10-31 13:21:29 +0100 |
commit | a83d4d012806f5d42a5ff4589fd63a50f62e4fd9 (patch) | |
tree | 67dc3ab5fa54da0cbb64f1eed6ac66f06acc50bf /spec/requests/api/branches_spec.rb | |
parent | b216d9bf85388e34891e392d8c80e72643d639c0 (diff) | |
download | gitlab-ce-a83d4d012806f5d42a5ff4589fd63a50f62e4fd9.tar.gz |
GrapeDSL for branches endpointszj-grape-branches
Diffstat (limited to 'spec/requests/api/branches_spec.rb')
-rw-r--r-- | spec/requests/api/branches_spec.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/requests/api/branches_spec.rb b/spec/requests/api/branches_spec.rb index 905f762d578..1711096f4bd 100644 --- a/spec/requests/api/branches_spec.rb +++ b/spec/requests/api/branches_spec.rb @@ -95,18 +95,6 @@ describe API::API, api: true do expect(json_response['developers_can_push']).to eq(true) expect(json_response['developers_can_merge']).to eq(true) end - - it 'protects a single branch and developers cannot push and merge' do - put api("/projects/#{project.id}/repository/branches/#{branch_name}/protect", user), - developers_can_push: 'tru', developers_can_merge: 'tr' - - expect(response).to have_http_status(200) - expect(json_response['name']).to eq(branch_name) - expect(json_response['commit']['id']).to eq(branch_sha) - expect(json_response['protected']).to eq(true) - expect(json_response['developers_can_push']).to eq(false) - expect(json_response['developers_can_merge']).to eq(false) - end end context 'for an existing protected branch' do |