From 21607751c97ed193a8df78a615f40e7284106a46 2012-02-25 12:35:22 From: Jean-Philippe Lang Date: 2012-02-25 12:35:22 Subject: [PATCH] Clean up assertion. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8999 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb index 564f91b..490bb34 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