diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-14 14:09:07 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-06-14 14:22:46 +0200 |
commit | cf292a3f1d3cc17d55131a15d91a53ff31017f5d (patch) | |
tree | 5253dc14c0c0516503bc489fe6b1b08c0fda3b01 /spec | |
parent | e45fd5a1e4efb805d3f7f5ed9cb708105c4e9d60 (diff) | |
download | gitlab-ce-cf292a3f1d3cc17d55131a15d91a53ff31017f5d.tar.gz |
Improve code clarity in pipeline create service
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/create_commit_builds_service_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/create_commit_builds_service_spec.rb b/spec/services/create_commit_builds_service_spec.rb index 08cbc9beb5c..50ce9659c10 100644 --- a/spec/services/create_commit_builds_service_spec.rb +++ b/spec/services/create_commit_builds_service_spec.rb @@ -60,7 +60,7 @@ describe CreateCommitBuildsService, services: true do after: '31das312', commits: [{ message: 'Message' }] ) - expect(result).not_to be_persisted + expect(result).to be_falsey expect(Ci::Pipeline.count).to eq(0) end @@ -184,7 +184,7 @@ describe CreateCommitBuildsService, services: true do before: '00000000', after: '31das312', commits: [{ message: 'some msg' }]) - expect(result).not_to be_persisted + expect(result).to be_falsey expect(Ci::Build.all).to be_empty expect(Ci::Pipeline.count).to eq(0) end |