##// 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 116 assert_template 'new'
117 117 assert_not_nil assigns(:news)
118 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 120 end
121 121
122 122 def test_get_edit
@@ -153,7 +153,7 class NewsControllerTest < ActionController::TestCase
153 153 put :update, :id => 1, :news => { :description => '' }
154 154 assert_response :success
155 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 157 end
158 158
159 159 def test_destroy
General Comments 0
You need to be logged in to leave comments. Login now