##// END OF EJS Templates
Clean up assertion....
Jean-Philippe Lang -
r8879:21607751c97e
parent child
Show More
@@ -117,8 +117,7 class NewsControllerTest < ActionController::TestCase
117 assert_template 'new'
117 assert_template 'new'
118 assert_not_nil assigns(:news)
118 assert_not_nil assigns(:news)
119 assert assigns(:news).new_record?
119 assert assigns(:news).new_record?
120 assert_tag :tag => 'div', :attributes => { :id => 'errorExplanation' },
120 assert_error_tag :content => /title can't be blank/i
121 :content => /1 error/
122 end
121 end
123
122
124 def test_get_edit
123 def test_get_edit
General Comments 0
You need to be logged in to leave comments. Login now