diff options
Diffstat (limited to 'spec/services/ci/update_build_queue_service_spec.rb')
-rw-r--r-- | spec/services/ci/update_build_queue_service_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/services/ci/update_build_queue_service_spec.rb b/spec/services/ci/update_build_queue_service_spec.rb index 14092d9dcca..f01a388b895 100644 --- a/spec/services/ci/update_build_queue_service_spec.rb +++ b/spec/services/ci/update_build_queue_service_spec.rb @@ -12,15 +12,15 @@ describe Ci::UpdateBuildQueueService, :services do before { build.project.runners << runner } it 'ticks runner queue value' do - expect { subject.execute(build) }. - to change { runner.ensure_runner_queue_value } + expect { subject.execute(build) } + .to change { runner.ensure_runner_queue_value } end end context 'when there are no runners that can pick build' do it 'does not tick runner queue value' do - expect { subject.execute(build) }. - not_to change { runner.ensure_runner_queue_value } + expect { subject.execute(build) } + .not_to change { runner.ensure_runner_queue_value } end end end @@ -30,8 +30,8 @@ describe Ci::UpdateBuildQueueService, :services do context 'when there are runner that can pick build' do it 'ticks runner queue value' do - expect { subject.execute(build) }. - to change { runner.ensure_runner_queue_value } + expect { subject.execute(build) } + .to change { runner.ensure_runner_queue_value } end end @@ -39,8 +39,8 @@ describe Ci::UpdateBuildQueueService, :services do before { build.tag_list = [:docker] } it 'does not tick runner queue value' do - expect { subject.execute(build) }. - not_to change { runner.ensure_runner_queue_value } + expect { subject.execute(build) } + .not_to change { runner.ensure_runner_queue_value } end end end |