summaryrefslogtreecommitdiff
path: root/spec/models
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/models
parent516a405eb277e088d3b4ae3cb6e64f0bd2d3aff0 (diff)
downloadgitlab-ce-9eded57dd2b4d23e43b485c448abb92359e6933e.tar.gz
Use `Ci::ExpirePipelineCacheService` to set `ProjectPipelinestatus`bvl-fix-project-ci-status-cache
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/pipeline_spec.rb13
1 files changed, 1 insertions, 12 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb
index b71fd794d4c..d7d6a75d38d 100644
--- a/spec/models/ci/pipeline_spec.rb
+++ b/spec/models/ci/pipeline_spec.rb
@@ -375,7 +375,7 @@ describe Ci::Pipeline, models: true do
end
end
- describe 'pipeline ETag caching' do
+ describe 'pipeline caching' do
it 'executes ExpirePipelinesCacheService' do
expect_any_instance_of(Ci::ExpirePipelineCacheService).to receive(:execute).with(pipeline)
@@ -1079,17 +1079,6 @@ describe Ci::Pipeline, models: true do
end
end
- describe 'update project cache when transitioning' do
- let(:pipeline) { create(:ci_pipeline, sha: '123456') }
-
- it 'updates the cached status' do
- expect(Gitlab::Cache::Ci::ProjectPipelineStatus).to receive(:update_for_pipeline).
- with(pipeline)
-
- pipeline.block
- end
- end
-
describe 'notifications when pipeline success or failed' do
let(:project) { create(:project, :repository) }