From: Toshi MARUYAMA Date: Tue, 4 Feb 2014 10:07:57 +0000 (+0000) Subject: use escaped "Can't" constant at TrackersControllerTest X-Git-Tag: 2.5.0~106 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e91bce3d05a7875b66459cd76ed78fa1e41feda5;p=redmine.git use escaped "Can't" constant at TrackersControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12794 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 4f2457d39..9f3542e01 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -59,7 +59,7 @@ class IssuesControllerTest < ActionController::TestCase assert_nil assigns(:project) # links to visible issues - assert_select 'a[href=/issues/1]', :text => /Can't print recipes/ + assert_select 'a[href=/issues/1]', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'a[href=/issues/5]', :text => /Subproject issue/ # private projects hidden assert_select 'a[href=/issues/6]', 0 @@ -95,7 +95,7 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'index' assert_not_nil assigns(:issues) - assert_select 'a[href=/issues/1]', :text => /Can't print recipes/ + assert_select 'a[href=/issues/1]', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'a[href=/issues/5]', 0 end @@ -106,7 +106,7 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'index' assert_not_nil assigns(:issues) - assert_select 'a[href=/issues/1]', :text => /Can't print recipes/ + assert_select 'a[href=/issues/1]', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'a[href=/issues/5]', :text => /Subproject issue/ assert_select 'a[href=/issues/6]', 0 end @@ -119,7 +119,7 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'index' assert_not_nil assigns(:issues) - assert_select 'a[href=/issues/1]', :text => /Can't print recipes/ + assert_select 'a[href=/issues/1]', :text => /#{ESCAPED_UCANT} print recipes/ assert_select 'a[href=/issues/5]', :text => /Subproject issue/ assert_select 'a[href=/issues/6]', :text => /Issue of a private subproject/ end @@ -892,7 +892,7 @@ class IssuesControllerTest < ActionController::TestCase assert_select 'textarea[name=?]', 'issue[notes]' end end - assert_select 'title', :text => "Bug #1: Can't print recipes - eCookbook - Redmine" + assert_select 'title', :text => "Bug #1: #{ESCAPED_UCANT} print recipes - eCookbook - Redmine" end def test_show_by_manager