Commit aafb9763 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fix failing test with long name

parent ccc9bed8
......@@ -19,7 +19,7 @@ describe "MergeRequests" do
subject { page }
it { should have_content(@merge_request.title) }
it { should have_content(@merge_request.title[0..10]) }
it { should have_content(@merge_request.target_branch) }
it { should have_content(@merge_request.source_branch) }
it { should have_content(@merge_request.assignee.name) }
......@@ -32,7 +32,7 @@ describe "MergeRequests" do
subject { page }
it { should have_content(@merge_request.title) }
it { should have_content(@merge_request.title[0..10]) }
it { should have_content(@merge_request.target_branch) }
it { should have_content(@merge_request.source_branch) }
it { should have_content(@merge_request.assignee.name) }
......@@ -40,7 +40,7 @@ describe "MergeRequests" do
describe "Close merge request" do
before { click_link "Close" }
it { should have_content(@merge_request.title) }
it { should have_content(@merge_request.title[0..10]) }
it "Show page should inform user that merge request closed" do
within ".merge-tabs" do
page.should have_content "Reopen"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment