diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-27 03:08:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-27 03:08:09 +0300 |
commit | 6348b76e4b4dd4e398915c3150c1d02aafa3f13b (patch) | |
tree | c8c53d4adac92d4576d73d33ebeeaa62a2626b12 /spec/services/snippets | |
parent | 03a70b84edfb86bc27f9234e1f1d157d3a33c555 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/snippets')
-rw-r--r-- | spec/services/snippets/create_service_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/snippets/create_service_spec.rb b/spec/services/snippets/create_service_spec.rb index 4cf574ed567..8c91763cc48 100644 --- a/spec/services/snippets/create_service_spec.rb +++ b/spec/services/snippets/create_service_spec.rb @@ -172,6 +172,10 @@ describe Snippets::CreateService do it 'returns the error' do expect(snippet.errors.full_messages).to include('Repository could not be created') end + + it 'does not return a snippet with an id' do + expect(snippet.id).to be_nil + end end context 'when the commit action fails' do |