@@ -117,8 +117,7 class NewsControllerTest < ActionController::TestCase | |||
|
117 | 117 | assert_template 'new' |
|
118 | 118 | assert_not_nil assigns(:news) |
|
119 | 119 | assert assigns(:news).new_record? |
|
120 | assert_tag :tag => 'div', :attributes => { :id => 'errorExplanation' }, | |
|
121 | :content => /1 error/ | |
|
120 | assert_error_tag :content => /title can't be blank/i | |
|
122 | 121 | end |
|
123 | 122 | |
|
124 | 123 | def test_get_edit |
General Comments 0
You need to be logged in to leave comments.
Login now