diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-19 12:09:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-19 12:09:27 +0300 |
commit | 2af90cef2e2e9c776eae4394a43dba3be7f33d1e (patch) | |
tree | bb4bc691caa6cc74b45720ecd779517f9c8c2cd3 /spec/support/shared_examples/requests | |
parent | cf58004721ee715dd3884476f6fa0c62a7e7f247 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/shared_examples/requests')
-rw-r--r-- | spec/support/shared_examples/requests/snippet_shared_examples.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/support/shared_examples/requests/snippet_shared_examples.rb b/spec/support/shared_examples/requests/snippet_shared_examples.rb index f2df97a35d9..aa7f57ae903 100644 --- a/spec/support/shared_examples/requests/snippet_shared_examples.rb +++ b/spec/support/shared_examples/requests/snippet_shared_examples.rb @@ -41,3 +41,10 @@ RSpec.shared_examples 'update with repository actions' do end end end + +RSpec.shared_examples 'snippet response without repository URLs' do + it 'skip inclusion of repository URLs' do + expect(json_response).not_to have_key('ssh_url_to_repo') + expect(json_response).not_to have_key('http_url_to_repo') + end +end |