diff options
Diffstat (limited to 'spec/services/snippets')
-rw-r--r-- | spec/services/snippets/create_service_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/services/snippets/create_service_spec.rb b/spec/services/snippets/create_service_spec.rb index 1cf1cff51ed..a1cbec6748a 100644 --- a/spec/services/snippets/create_service_spec.rb +++ b/spec/services/snippets/create_service_spec.rb @@ -164,7 +164,9 @@ describe Snippets::CreateService do it 'does not create snippet repository' do stub_feature_flags(version_snippets: false) - subject + expect do + subject + end.to change(Snippet, :count).by(1) expect(snippet.repository_exists?).to be_falsey end |