From aafb97634a32723a3650d6e2b16e086d749f4663 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Date: Fri, 16 Dec 2011 00:00:28 +0200 Subject: [PATCH] fix failing test with long name --- spec/requests/merge_requests_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/requests/merge_requests_spec.rb b/spec/requests/merge_requests_spec.rb index 18c85df423..7d9fd67b92 100644 --- a/spec/requests/merge_requests_spec.rb +++ b/spec/requests/merge_requests_spec.rb @@ -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" -- 2.30.9