summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/views/projects/merge_requests/_new_submit.html.haml_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/views/projects/merge_requests/_new_submit.html.haml_spec.rb b/spec/views/projects/merge_requests/_new_submit.html.haml_spec.rb
index 4f698a34ab5..968fbefd80d 100644
--- a/spec/views/projects/merge_requests/_new_submit.html.haml_spec.rb
+++ b/spec/views/projects/merge_requests/_new_submit.html.haml_spec.rb
@@ -1,6 +1,7 @@
require 'spec_helper'
describe 'projects/merge_requests/_new_submit.html.haml', :view do
+
let(:merge_request) { create(:merge_request) }
let!(:pipeline) { create(:ci_empty_pipeline) }
@@ -22,10 +23,10 @@ describe 'projects/merge_requests/_new_submit.html.haml', :view do
assign(:pipeline, nil)
end
- it 'shows <<Pipelines>> tab and hides <<Builds>> tab' do
+ it 'shows <<Pipelines>> tab' do
render
+
expect(rendered).to have_text('Pipelines 1')
- expect(rendered).not_to have_text('Builds')
end
end
end