summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-21 11:48:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-21 11:48:00 +0000
commit8ed791d690cda429c1b411f75d77e94321e1d154 (patch)
treedaa5428b6f3e44f833321bff2e669bdd97c30764 /test/functional
parent744ceaf61f5b3fc2065df0d7f0c42390236dc5b9 (diff)
downloadredmine-8ed791d690cda429c1b411f75d77e94321e1d154.tar.gz
redmine-8ed791d690cda429c1b411f75d77e94321e1d154.zip
Use DOM assertion instead.
git-svn-id: http://svn.redmine.org/redmine/trunk@13779 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb3
1 files changed, 2 insertions, 1 deletions
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 %|<a href="/issues/#{issue.id}" title="This is first issue">##{issue.id}</a>|, 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