summaryrefslogtreecommitdiffstats
path: root/test/functional/news_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-04 23:52:12 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-04 23:52:12 +0000
commit98249335d5c75aec367197edca22bc8c686c2353 (patch)
treecb0cf35c6cf928184b0d50257895da407673b068 /test/functional/news_controller_test.rb
parent031e4fde63a0b3b571d5ac9b83915f83e5dc1905 (diff)
downloadredmine-98249335d5c75aec367197edca22bc8c686c2353.tar.gz
redmine-98249335d5c75aec367197edca22bc8c686c2353.zip
use escaped "can't" constant at NewsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12803 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/news_controller_test.rb')
-rw-r--r--test/functional/news_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb
index 426dec5d3..9fdfc066c 100644
--- a/test/functional/news_controller_test.rb
+++ b/test/functional/news_controller_test.rb
@@ -116,7 +116,7 @@ class NewsControllerTest < ActionController::TestCase
assert_template 'new'
assert_not_nil assigns(:news)
assert assigns(:news).new_record?
- assert_error_tag :content => /title can&#x27;t be blank/i
+ assert_error_tag :content => /title #{ESCAPED_CANT} be blank/i
end
def test_get_edit
@@ -153,7 +153,7 @@ class NewsControllerTest < ActionController::TestCase
put :update, :id => 1, :news => { :description => '' }
assert_response :success
assert_template 'edit'
- assert_error_tag :content => /description can&#x27;t be blank/i
+ assert_error_tag :content => /description #{ESCAPED_CANT} be blank/i
end
def test_destroy