From: Toshi MARUYAMA Date: Thu, 6 Feb 2014 04:45:38 +0000 (+0000) Subject: use escaped "Can't" constant at IssuesHelperTest X-Git-Tag: 2.5.0~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=50eed3f9ab31b30606f5f9d33d2e107498aaf5ab;p=redmine.git use escaped "Can't" constant at IssuesHelperTest git-svn-id: http://svn.redmine.org/redmine/trunk@12842 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/helpers/issues_helper_test.rb b/test/unit/helpers/issues_helper_test.rb index 27f4df0f9..fd574db91 100644 --- a/test/unit/helpers/issues_helper_test.rb +++ b/test/unit/helpers/issues_helper_test.rb @@ -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{Precedes Bug #1: Can't print recipes added}, + assert_match %r{Precedes Bug #1: #{ESCAPED_UCANT} print recipes 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{Precedes deleted \(Bug #1: Can't print recipes\)}, + assert_match %r{Precedes deleted \(Bug #1: #{ESCAPED_UCANT} print recipes\)}, show_detail(detail, false) end