1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-05 08:33:25 +00:00

Use DOM assertion instead.

git-svn-id: http://svn.redmine.org/redmine/trunk@13779 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-12-21 11:48:00 +00:00
parent 744ceaf61f
commit 8ed791d690

View File

@ -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