diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-17 14:47:35 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-24 12:07:37 +0300 |
commit | cae3092f234d834bfc869b61b05dec5d83742afd (patch) | |
tree | 103181fc5b7a2b757fdfba5f56bd4d263b4f1285 /spec/services/ci | |
parent | f0d59b95f1da0293345705fe0b2c629b911a5b5e (diff) |
Fix specs creating a pipeline stage with implicit index
Diffstat (limited to 'spec/services/ci')
-rw-r--r-- | spec/services/ci/retry_build_service_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/services/ci/retry_build_service_spec.rb b/spec/services/ci/retry_build_service_spec.rb index 8de0bdf92e2..5bc6031388e 100644 --- a/spec/services/ci/retry_build_service_spec.rb +++ b/spec/services/ci/retry_build_service_spec.rb @@ -6,7 +6,9 @@ describe Ci::RetryBuildService do set(:pipeline) { create(:ci_pipeline, project: project) } let(:stage) do - Ci::Stage.create!(project: project, pipeline: pipeline, name: 'test') + create(:ci_stage_entity, project: project, + pipeline: pipeline, + name: 'test') end let(:build) { create(:ci_build, pipeline: pipeline, stage_id: stage.id) } |