summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-17 16:20:27 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-02-17 16:20:27 +0000
commitaccf756de533e7dc631b169b55646f9626af675c (patch)
treeacffa42be576863497071323958630382bc1a598
parent953c2547a26992a89e7c540b80db3759f31a8e28 (diff)
downloadgitlab-ce-fix-trasient-failure.tar.gz
Change rspec view test to not look for tab that does not exist anymorefix-trasient-failure
-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