##// END OF EJS Templates
use escaped "can't" constant at NewsControllerTest...
Toshi MARUYAMA -
r12528:98249335d5c7
parent child
Show More
@@ -116,7 +116,7 class NewsControllerTest < ActionController::TestCase
116 assert_template 'new'
116 assert_template 'new'
117 assert_not_nil assigns(:news)
117 assert_not_nil assigns(:news)
118 assert assigns(:news).new_record?
118 assert assigns(:news).new_record?
119 assert_error_tag :content => /title can&#x27;t be blank/i
119 assert_error_tag :content => /title #{ESCAPED_CANT} be blank/i
120 end
120 end
121
121
122 def test_get_edit
122 def test_get_edit
@@ -153,7 +153,7 class NewsControllerTest < ActionController::TestCase
153 put :update, :id => 1, :news => { :description => '' }
153 put :update, :id => 1, :news => { :description => '' }
154 assert_response :success
154 assert_response :success
155 assert_template 'edit'
155 assert_template 'edit'
156 assert_error_tag :content => /description can&#x27;t be blank/i
156 assert_error_tag :content => /description #{ESCAPED_CANT} be blank/i
157 end
157 end
158
158
159 def test_destroy
159 def test_destroy
General Comments 0
You need to be logged in to leave comments. Login now