summaryrefslogtreecommitdiff
path: root/spec/tasks/cache/clear
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2018-11-23 16:41:08 +0800
committerHeinrich Lee Yu <heinrich@gitlab.com>2018-11-26 17:41:41 +0800
commit6bb1a2ab23ba7729b1c9720296dfceb6079644c7 (patch)
tree6b43849e478f131c66d4cd9dae184c8af8d2b9c1 /spec/tasks/cache/clear
parent3b49a7948c8f0613f2d04f270b70982f620d7c3a (diff)
downloadgitlab-ce-6bb1a2ab23ba7729b1c9720296dfceb6079644c7.tar.gz
Update tests
Diffstat (limited to 'spec/tasks/cache/clear')
-rw-r--r--spec/tasks/cache/clear/redis_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/tasks/cache/clear/redis_spec.rb b/spec/tasks/cache/clear/redis_spec.rb
index cca2b864e9b..97c8c943f3a 100644
--- a/spec/tasks/cache/clear/redis_spec.rb
+++ b/spec/tasks/cache/clear/redis_spec.rb
@@ -6,7 +6,10 @@ describe 'clearing redis cache' do
end
describe 'clearing pipeline status cache' do
- let(:pipeline_status) { create(:ci_pipeline).project.pipeline_status }
+ let(:pipeline_status) do
+ project = create(:project, :repository)
+ create(:ci_pipeline, project: project).project.pipeline_status
+ end
before do
allow(pipeline_status).to receive(:loaded).and_return(nil)