diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-01-02 09:39:45 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-01-04 13:36:45 +0300 |
commit | 0d9b801a5ff9d98948954da61569668a57dde99a (patch) | |
tree | dc2851716075f28da4de4c68b1d50ddd57b58414 /spec/services/ci | |
parent | c50b0e58feb208fd26129548ad086c3ef50df604 (diff) |
Refactor the logic of updating head pipelines
Sort out some logic
Diffstat (limited to 'spec/services/ci')
-rw-r--r-- | spec/services/ci/create_pipeline_service_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/services/ci/create_pipeline_service_spec.rb b/spec/services/ci/create_pipeline_service_spec.rb index 87b60387c52..8497e90bd8b 100644 --- a/spec/services/ci/create_pipeline_service_spec.rb +++ b/spec/services/ci/create_pipeline_service_spec.rb @@ -143,7 +143,8 @@ describe Ci::CreatePipelineService do target_branch: "branch_1", source_project: project) - allow_any_instance_of(Ci::Pipeline).to receive(:latest?).and_return(false) + allow_any_instance_of(MergeRequest) + .to receive(:find_actual_head_pipeline) { } execute_service |