use escaped "can't" constant at NewsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12803 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
031e4fde63
commit
98249335d5
@ -116,7 +116,7 @@ class NewsControllerTest < ActionController::TestCase
|
|||||||
assert_template 'new'
|
assert_template 'new'
|
||||||
assert_not_nil assigns(:news)
|
assert_not_nil assigns(:news)
|
||||||
assert assigns(:news).new_record?
|
assert assigns(:news).new_record?
|
||||||
assert_error_tag :content => /title can't be blank/i
|
assert_error_tag :content => /title #{ESCAPED_CANT} be blank/i
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_get_edit
|
def test_get_edit
|
||||||
@ -153,7 +153,7 @@ class NewsControllerTest < ActionController::TestCase
|
|||||||
put :update, :id => 1, :news => { :description => '' }
|
put :update, :id => 1, :news => { :description => '' }
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'edit'
|
assert_template 'edit'
|
||||||
assert_error_tag :content => /description can't be blank/i
|
assert_error_tag :content => /description #{ESCAPED_CANT} be blank/i
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_destroy
|
def test_destroy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user