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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user