diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-04-16 10:27:09 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-04-16 10:27:09 +0300 |
commit | a6a1b7310f240ea037212dd97690e99b35ddc06e (patch) | |
tree | 036294dbe2e12d9920f065523e18e8542d5ba9e4 /spec/lib | |
parent | ef3fb77f0fd108d0e66d8ea63efd15e0af49b3eb (diff) | |
parent | 4b30aec0aa9e52d3d7d4394f05a725d14e0c0db3 (diff) |
Merge branch '44582-clear-pipeline-status-cache' into 'master'
Allow `rake cache:clear` clearing pipeline status cache
Closes #44582
See merge request gitlab-org/gitlab-ce!18257
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb b/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb index 16704ff5e77..18658588a40 100644 --- a/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb +++ b/spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe Gitlab::Cache::Ci::ProjectPipelineStatus, :clean_gitlab_redis_cache do let!(:project) { create(:project, :repository) } let(:pipeline_status) { described_class.new(project) } - let(:cache_key) { "projects/#{project.id}/pipeline_status" } + let(:cache_key) { described_class.cache_key_for_project(project) } describe '.load_for_project' do it "loads the status" do |