From 8ed791d690cda429c1b411f75d77e94321e1d154 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 21 Dec 2014 11:48:00 +0000 Subject: [PATCH] Use DOM assertion instead. git-svn-id: http://svn.redmine.org/redmine/trunk@13779 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 9f6107c89..3596a08cc 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -1872,7 +1872,8 @@ class IssuesControllerTest < ActionController::TestCase issue = Issue.order('id DESC').first assert_redirected_to :controller => 'issues', :action => 'new', :project_id => 'ecookbook', :issue => {:tracker_id => 3} assert_not_nil flash[:notice], "flash was not set" - assert_include %|##{issue.id}|, flash[:notice], "issue link not found in the flash message" + assert_select_in flash[:notice], + 'a[href=?][title=?]', "/issues/#{issue.id}", "This is first issue", :text => "##{issue.id}" end def test_post_create_without_custom_fields_param