summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/models/ci/stage_spec.rb19
1 files changed, 9 insertions, 10 deletions
diff --git a/spec/models/ci/stage_spec.rb b/spec/models/ci/stage_spec.rb
index b482e7de88b..b40496252b4 100644
--- a/spec/models/ci/stage_spec.rb
+++ b/spec/models/ci/stage_spec.rb
@@ -112,7 +112,6 @@ describe Ci::Stage, :models do
end
end
-
describe '#detailed_status' do
using RSpec::Parameterized::TableSyntax
@@ -134,9 +133,9 @@ describe Ci::Stage, :models do
before do
statuses.each do |status|
create(:commit_status, project: stage.project,
- pipeline: stage.pipeline,
- stage_id: stage.id,
- status: status)
+ pipeline: stage.pipeline,
+ stage_id: stage.id,
+ status: status)
stage.update_status
end
@@ -149,13 +148,13 @@ describe Ci::Stage, :models do
context 'when stage has warnings' do
before do
- create(:ci_build, project: stage.project,
- pipeline: stage.pipeline,
- stage_id: stage.id,
- status: :failed,
- allow_failure: true)
+ create(:ci_build, project: stage.project,
+ pipeline: stage.pipeline,
+ stage_id: stage.id,
+ status: :failed,
+ allow_failure: true)
- stage.update_status
+ stage.update_status
end
it 'is passed with warnings' do