summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-05 12:54:52 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-05 12:54:52 +0200
commit8808e7bcf518e16fa36762a9b01f6cf224233f06 (patch)
treecca1cf658ecc19fedaabc6e4955d53cae0c111b9
parent79380fe5fb5943179960f4879e174eb977b918d3 (diff)
downloadgitlab-ce-8808e7bcf518e16fa36762a9b01f6cf224233f06.tar.gz
Add assertions about new pipeline stage in specs
-rw-r--r--spec/lib/gitlab/ci/stage/seed_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/stage/seed_spec.rb b/spec/lib/gitlab/ci/stage/seed_spec.rb
index f4353040ce6..47a797cfe8f 100644
--- a/spec/lib/gitlab/ci/stage/seed_spec.rb
+++ b/spec/lib/gitlab/ci/stage/seed_spec.rb
@@ -48,6 +48,10 @@ describe Gitlab::Ci::Stage::Seed do
expect(pipeline.builds).to all(satisfy { |job| job.stage_id.present? })
expect(pipeline.builds).to all(satisfy { |job| job.pipeline.present? })
expect(pipeline.builds).to all(satisfy { |job| job.project.present? })
+ expect(pipeline.stages)
+ .to all(satisfy { |stage| stage.pipeline.present? })
+ expect(pipeline.stages)
+ .to all(satisfy { |stage| stage.project.present? })
end
end
end