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:
authorToon Claes <toon@gitlab.com>2017-04-05 17:36:14 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2017-04-07 00:50:37 +0300
commit9e89c93e167d66644fd771b106be5ce01b899fcf (patch)
tree2d27a9b525f0cd61dc565b132eafe6ba5cbdf2e4 /spec/services/ci
parent26e24bbe533aaca94a7290509e2d608747b316fa (diff)
Enable polling for pipelines table other pages
Also poll for pipeline changes on: - Pipeline table on commit page - Pipeline table on merge request page - Pipeline table on new merge request page
Diffstat (limited to 'spec/services/ci')
-rw-r--r--spec/services/ci/expire_pipeline_cache_service_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/services/ci/expire_pipeline_cache_service_spec.rb b/spec/services/ci/expire_pipeline_cache_service_spec.rb
index b8250f99c5a..3c735872c30 100644
--- a/spec/services/ci/expire_pipeline_cache_service_spec.rb
+++ b/spec/services/ci/expire_pipeline_cache_service_spec.rb
@@ -8,9 +8,11 @@ describe Ci::ExpirePipelineCacheService, services: true do
describe '#execute' do
it 'invalidate Etag caching for project pipelines path' do
- path = "/#{project.full_path}/pipelines.json"
+ pipelines_path = "/#{project.full_path}/pipelines.json"
+ new_mr_pipelines_path = "/#{project.full_path}/merge_requests/new.json"
- expect_any_instance_of(Gitlab::EtagCaching::Store).to receive(:touch).with(path)
+ expect_any_instance_of(Gitlab::EtagCaching::Store).to receive(:touch).with(pipelines_path)
+ expect_any_instance_of(Gitlab::EtagCaching::Store).to receive(:touch).with(new_mr_pipelines_path)
subject.execute(pipeline)
end