summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-02-06 09:29:40 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-02-06 09:29:40 +0100
commitb50bfb04ab7408c7f4194b589b2db2ca12679c5d (patch)
treef7c59e92e1b67e5f1f09a354df9f66744d625b52 /spec
parent538ad92a1cdbf145106c6e49a6669da02fe94543 (diff)
downloadgitlab-ce-b50bfb04ab7408c7f4194b589b2db2ca12679c5d.tar.gz
Fix indentation offenses in ensure stage service
Diffstat (limited to 'spec')
-rw-r--r--spec/services/ci/ensure_stage_service_spec.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/spec/services/ci/ensure_stage_service_spec.rb b/spec/services/ci/ensure_stage_service_spec.rb
index 47ba1e74c15..fa3baf3236a 100644
--- a/spec/services/ci/ensure_stage_service_spec.rb
+++ b/spec/services/ci/ensure_stage_service_spec.rb
@@ -10,27 +10,27 @@ describe Ci::EnsureStageService, '#execute' do
let(:service) { described_class.new(project, user) }
context 'when build has a stage assigned' do
- it 'does not create a new stage' do
- job.assign_attributes(stage_id: stage.id)
+ it 'does not create a new stage' do
+ job.assign_attributes(stage_id: stage.id)
- expect { service.execute(job) }.not_to change { Ci::Stage.count }
- end
+ expect { service.execute(job) }.not_to change { Ci::Stage.count }
+ end
end
context 'when build does not have a stage assigned' do
- it 'creates a new stage' do
- job.assign_attributes(stage_id: nil, stage: 'test')
+ it 'creates a new stage' do
+ job.assign_attributes(stage_id: nil, stage: 'test')
- expect { service.execute(job) }.to change { Ci::Stage.count }.by(1)
- end
+ expect { service.execute(job) }.to change { Ci::Stage.count }.by(1)
+ end
end
context 'when build is invalid' do
- it 'does not create a new stage' do
- job.assign_attributes(stage_id: nil, ref: nil)
+ it 'does not create a new stage' do
+ job.assign_attributes(stage_id: nil, ref: nil)
- expect { service.execute(job) }.not_to change { Ci::Stage.count }
- end
+ expect { service.execute(job) }.not_to change { Ci::Stage.count }
+ end
end
context 'when new stage can not be created because of an exception' do