diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-11-23 16:41:08 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-11-26 17:41:41 +0800 |
commit | 6bb1a2ab23ba7729b1c9720296dfceb6079644c7 (patch) | |
tree | 6b43849e478f131c66d4cd9dae184c8af8d2b9c1 /spec/tasks/cache/clear | |
parent | 3b49a7948c8f0613f2d04f270b70982f620d7c3a (diff) | |
download | gitlab-ce-6bb1a2ab23ba7729b1c9720296dfceb6079644c7.tar.gz |
Update tests
Diffstat (limited to 'spec/tasks/cache/clear')
-rw-r--r-- | spec/tasks/cache/clear/redis_spec.rb | 5 |
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) |