diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/ci/runner_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb index fa540f8d4fd..6ad37417623 100644 --- a/spec/models/ci/runner_spec.rb +++ b/spec/models/ci/runner_spec.rb @@ -792,7 +792,7 @@ describe Ci::Runner do end end - describe '#invalidate_build_cache!' do + describe '#pick_build!' do context 'runner can pick the build' do it 'calls #tick_runner_queue' do ci_build = build :ci_build @@ -801,7 +801,7 @@ describe Ci::Runner do expect(runner).to receive(:tick_runner_queue) - runner.invalidate_build_cache!(ci_build) + runner.pick_build!(ci_build) end end @@ -813,7 +813,7 @@ describe Ci::Runner do expect(runner).not_to receive(:tick_runner_queue) - runner.invalidate_build_cache!(ci_build) + runner.pick_build!(ci_build) end end end |