summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-01-04 19:40:07 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-01-04 22:17:03 +0100
commit8cc14dd5371c33f389211fcee39dbb28686b2021 (patch)
tree5d112a8a9cc325dd7c781db3a68e5c7cac6889d1 /spec/models
parent7d7d289b159fba332c68dc66b6f9f3b17428c3a3 (diff)
downloadgitlab-ce-8cc14dd5371c33f389211fcee39dbb28686b2021.tar.gz
Rename Project#cache_index to jobs_cache_index
Diffstat (limited to 'spec/models')
-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]]) }