]> source.dussan.org Git - redmine.git/commitdiff
use escaped "Can't" constant at IssuesHelperTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Feb 2014 04:45:38 +0000 (04:45 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 6 Feb 2014 04:45:38 +0000 (04:45 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12842 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/issues_helper_test.rb

index 27f4df0f9e6f2639233e7caadefd17fd4abdb26f..fd574db9150bbe2e5ca807ec3f8d5e63aa834b22 100644 (file)
@@ -216,7 +216,7 @@ class IssuesHelperTest < ActionView::TestCase
                                :prop_key => 'precedes',
                                :value    => 1)
     assert_equal "Precedes Bug #1: Can't print recipes added", show_detail(detail, true)
-    assert_match %r{<strong>Precedes</strong> <i><a href="/issues/1" class=".+">Bug #1</a>: Can&#x27;t print recipes</i> added},
+    assert_match %r{<strong>Precedes</strong> <i><a href="/issues/1" class=".+">Bug #1</a>: #{ESCAPED_UCANT} print recipes</i> added},
                  show_detail(detail, false)
   end
 
@@ -245,7 +245,7 @@ class IssuesHelperTest < ActionView::TestCase
                                :prop_key  => 'precedes',
                                :old_value => 1)
     assert_equal "Precedes deleted (Bug #1: Can't print recipes)", show_detail(detail, true)
-    assert_match %r{<strong>Precedes</strong> deleted \(<i><a href="/issues/1" class=".+">Bug #1</a>: Can&#x27;t print recipes</i>\)},
+    assert_match %r{<strong>Precedes</strong> deleted \(<i><a href="/issues/1" class=".+">Bug #1</a>: #{ESCAPED_UCANT} print recipes</i>\)},
                  show_detail(detail, false)
   end