]> source.dussan.org Git - redmine.git/commitdiff
Clean up assertion.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Feb 2012 12:35:22 +0000 (12:35 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 25 Feb 2012 12:35:22 +0000 (12:35 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8999 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/news_controller_test.rb

index 564f91bdf94d668977877f8839c4def22cfe5e62..490bb34a5b95d76064e90bea4de46974256262ee 100644 (file)
@@ -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