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-24 11:18:37 +0300
committerToon Claes <toon@gitlab.com>2017-04-24 11:23:42 +0300
commit956624688dec0d63024a424accc6a52b7bf04927 (patch)
tree996e4a3ff878ef5cef10b4ce4959318b56cb3820 /spec/workers/expire_pipeline_cache_worker_spec.rb
parent14642e3c28ae40d2ecf409c327e29e6c3add63fa (diff)
Simplify specs and remove unnecessary attributes
Diffstat (limited to 'spec/workers/expire_pipeline_cache_worker_spec.rb')
-rw-r--r--spec/workers/expire_pipeline_cache_worker_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/workers/expire_pipeline_cache_worker_spec.rb b/spec/workers/expire_pipeline_cache_worker_spec.rb
index 58f587f6d11..ceba604dea2 100644
--- a/spec/workers/expire_pipeline_cache_worker_spec.rb
+++ b/spec/workers/expire_pipeline_cache_worker_spec.rb
@@ -18,8 +18,7 @@ describe ExpirePipelineCacheWorker do
end
it 'invalidates Etag caching for merge request pipelines if pipeline runs on any commit of that source branch' do
- project = create(:project, :repository)
- pipeline = create(:ci_empty_pipeline, status: 'created', project: project, ref: 'master', sha: project.repository.commit('master^').id)
+ pipeline = create(:ci_empty_pipeline, status: 'created', project: project, ref: 'master')
merge_request = create(:merge_request, source_project: project, source_branch: pipeline.ref)
merge_request_pipelines_path = "/#{project.full_path}/merge_requests/#{merge_request.iid}/pipelines.json"