Clean up assertion.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8999 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-02-25 12:35:22 +00:00
parent 56a5f598f1
commit 21607751c9
1 changed files with 1 additions and 2 deletions

View 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