diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-16 02:00:28 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-16 02:00:28 +0400 |
commit | aafb97634a32723a3650d6e2b16e086d749f4663 (patch) | |
tree | 71eb1537d594726704b2536b0fb65b611468905b /spec | |
parent | ccc9bed89365fd4a13253d2491ab45345f04a5c3 (diff) |
fix failing test with long name
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/merge_requests_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/merge_requests_spec.rb b/spec/requests/merge_requests_spec.rb index 18c85df4234..7d9fd67b926 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" |