Merged r12070 from trunk to 2.3-stable

not use assert_not_nil in Errors#[].

r7593 etc. replaced Rails2 Errors#on.
Rails3 Errors#[] always return array.
So, Rails3 Errors#[] is always not nil.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@12071 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2013-07-30 09:38:00 +00:00
parent dc98cec17f
commit d155392b3c
6 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class AttachmentTest < ActiveSupport::TestCase
def test_description_length_should_be_validated
a = Attachment.new(:description => 'a' * 300)
assert !a.save
assert_not_nil a.errors[:description]
assert_not_equal [], a.errors[:description]
end
def test_destroy