summaryrefslogtreecommitdiff
path: root/spec/features/projects
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-10-08 16:55:13 +0100
committerFilipa Lacerda <filipa@gitlab.com>2018-10-08 16:55:13 +0100
commit0d583e5e8a36231eef614305208ea67ab91a5b62 (patch)
tree729ae65ff6115151e713e50ee0d19fe0a4a9bab4 /spec/features/projects
parentfa875ba7a9441df6827ef1d6b05405c66ee0c579 (diff)
downloadgitlab-ce-0d583e5e8a36231eef614305208ea67ab91a5b62.tar.gz
Creates ref_exists? method for Pipeline class
Diffstat (limited to 'spec/features/projects')
-rw-r--r--spec/features/projects/pipelines/pipeline_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb
index 8cdefebd4ce..a79dbe7f877 100644
--- a/spec/features/projects/pipelines/pipeline_spec.rb
+++ b/spec/features/projects/pipelines/pipeline_spec.rb
@@ -244,7 +244,7 @@ describe 'Pipeline', :js do
context 'with deleted branch' do
before do
- DeleteBranchService.new(@project, @user).execute(pipeline.ref)
+ allow(pipeline).to receive(:ref_exists?).and_return(false)
end
it 'does not render link to the pipeline ref' do