summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-27 00:08:09 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-27 00:08:09 +0000
commit6348b76e4b4dd4e398915c3150c1d02aafa3f13b (patch)
treec8c53d4adac92d4576d73d33ebeeaa62a2626b12 /spec/services
parent03a70b84edfb86bc27f9234e1f1d157d3a33c555 (diff)
downloadgitlab-ce-6348b76e4b4dd4e398915c3150c1d02aafa3f13b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/snippets/create_service_spec.rb4
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