diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-12 20:34:26 +0100 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-12 20:34:26 +0100 |
commit | 08ef7b9fe8595ab6695418108420f079dbd73694 (patch) | |
tree | 7623eca27a1a69193f5d4cc000230faabc8ed815 /spec/services/ci/create_pipeline_service_spec.rb | |
parent | 7a98f0bdc00ae929708b588cc02714c4cd7f09ee (diff) | |
download | gitlab-ce-08ef7b9fe8595ab6695418108420f079dbd73694.tar.gz |
Fix non-hacking way
Diffstat (limited to 'spec/services/ci/create_pipeline_service_spec.rb')
-rw-r--r-- | spec/services/ci/create_pipeline_service_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/services/ci/create_pipeline_service_spec.rb b/spec/services/ci/create_pipeline_service_spec.rb index d2322fa4cab..193148d403a 100644 --- a/spec/services/ci/create_pipeline_service_spec.rb +++ b/spec/services/ci/create_pipeline_service_spec.rb @@ -403,6 +403,8 @@ describe Ci::CreatePipelineService do expect(result).to be_persisted expect(Environment.find_by(name: "review/master")).to be_present expect(result.builds.first.tag_list).to contain_exactly('hello') + expect(result.builds.first.deployment).to be_persisted + expect(result.builds.first.deployment.deployable).to be_a(Ci::Build) end end |