]> source.dussan.org Git - redmine.git/commitdiff
Fixed test failure.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 4 Jul 2012 19:24:25 +0000 (19:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 4 Jul 2012 19:24:25 +0000 (19:24 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9910 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index 9e7836f0e0ea05eddc3aaaca2953140082f8f86b..d5c2565a162ddb627da181cc8543289bfa67ee1d 100644 (file)
@@ -1556,7 +1556,7 @@ class IssuesControllerTest < ActionController::TestCase
     issue = Issue.first(:order => 'id DESC')
     assert_redirected_to :controller => 'issues', :action => 'new', :project_id => 'ecookbook', :issue => {:tracker_id => 3}
     assert_not_nil flash[:notice], "flash was not set"
-    assert flash[:notice].include?("<a href='/issues/#{issue.id}'>##{issue.id}</a>"), "issue link not found in flash: #{flash[:notice]}"
+    assert flash[:notice].include?(%|<a href="/issues/#{issue.id}">##{issue.id}</a>|), "issue link not found in flash: #{flash[:notice]}"
   end
 
   def test_post_create_without_custom_fields_param