Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2018-11-23 11:41:08 +0300
committerHeinrich Lee Yu <heinrich@gitlab.com>2018-11-26 12:41:41 +0300
commit6bb1a2ab23ba7729b1c9720296dfceb6079644c7 (patch)
tree6b43849e478f131c66d4cd9dae184c8af8d2b9c1 /spec/tasks
parent3b49a7948c8f0613f2d04f270b70982f620d7c3a (diff)
Update tests
Diffstat (limited to 'spec/tasks')
-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)