summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-07 10:56:35 +0200
committerBob Van Landuyt <bob@gitlab.com>2017-04-07 17:24:11 +0200
commit9eded57dd2b4d23e43b485c448abb92359e6933e (patch)
tree061e49c5482a919f3680d858994fae304cd4edbe /spec/services
parent516a405eb277e088d3b4ae3cb6e64f0bd2d3aff0 (diff)
downloadgitlab-ce-9eded57dd2b4d23e43b485c448abb92359e6933e.tar.gz
Use `Ci::ExpirePipelineCacheService` to set `ProjectPipelinestatus`bvl-fix-project-ci-status-cache
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/ci/expire_pipeline_cache_service_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/services/ci/expire_pipeline_cache_service_spec.rb b/spec/services/ci/expire_pipeline_cache_service_spec.rb
index 3c735872c30..166c6dfc93e 100644
--- a/spec/services/ci/expire_pipeline_cache_service_spec.rb
+++ b/spec/services/ci/expire_pipeline_cache_service_spec.rb
@@ -16,5 +16,12 @@ describe Ci::ExpirePipelineCacheService, services: true do
subject.execute(pipeline)
end
+
+ it 'updates the cached status for a project' do
+ expect(Gitlab::Cache::Ci::ProjectPipelineStatus).to receive(:update_for_pipeline).
+ with(pipeline)
+
+ subject.execute(pipeline)
+ end
end
end