summaryrefslogtreecommitdiff
path: root/spec/models/ci/build_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/ci/build_spec.rb')
-rw-r--r--spec/models/ci/build_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 96513281994..8cecaf16fdf 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -265,17 +265,17 @@ describe Ci::Build do
allow(build).to receive(:options).and_return(options)
end
- context 'when project has cache_index' do
+ context 'when project has jobs_cache_index' do
before do
- allow_any_instance_of(Project).to receive(:cache_index).and_return(1)
+ allow_any_instance_of(Project).to receive(:jobs_cache_index).and_return(1)
end
it { is_expected.to include(key: "key:1") }
end
- context 'when project does not have cache_index' do
+ context 'when project does not have jobs_cache_index' do
before do
- allow_any_instance_of(Project).to receive(:cache_index).and_return(nil)
+ allow_any_instance_of(Project).to receive(:jobs_cache_index).and_return(nil)
end
it { is_expected.to eq([options[:cache]]) }