diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb index 564f91bdf..490bb34a5 100644 --- a/test/functional/news_controller_test.rb +++ b/test/functional/news_controller_test.rb @@ -117,8 +117,7 @@ class NewsControllerTest < ActionController::TestCase assert_template 'new' assert_not_nil assigns(:news) assert assigns(:news).new_record? - assert_tag :tag => 'div', :attributes => { :id => 'errorExplanation' }, - :content => /1 error/ + assert_error_tag :content => /title can't be blank/i end def test_get_edit