summaryrefslogtreecommitdiff
path: root/spec/requests/api/members_spec.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2017-08-24 18:03:39 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2017-08-28 17:10:34 +0200
commit915dd57fe26fb228f30ae08edc4905b24d4c4339 (patch)
tree887cf877dae6fbc56bd16100a44c52da87b8611f /spec/requests/api/members_spec.rb
parentdcd4ea473cab20eee05995ecaca043da98ca5a8d (diff)
downloadgitlab-ce-915dd57fe26fb228f30ae08edc4905b24d4c4339.tar.gz
Add tests for the unmodified header
Diffstat (limited to 'spec/requests/api/members_spec.rb')
-rw-r--r--spec/requests/api/members_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/requests/api/members_spec.rb b/spec/requests/api/members_spec.rb
index 06aca698c91..d3bae8d2888 100644
--- a/spec/requests/api/members_spec.rb
+++ b/spec/requests/api/members_spec.rb
@@ -284,6 +284,10 @@ describe API::Members do
expect(response).to have_http_status(204)
end.to change { source.members.count }.by(-1)
end
+
+ it_behaves_like '412 response' do
+ let(:request) { api("/#{source_type.pluralize}/#{source.id}/members/#{developer.id}", master) }
+ end
end
it 'returns 404 if member does not exist' do