diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-07-30 08:23:54 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-07-30 08:23:54 +0000 |
commit | c49451eb102d62fcc0982721ccad14087883f9ce (patch) | |
tree | 0d6aa6c7a78b6236b7f84c28fd3bd84d5a9f2fbe /test/unit/user_test.rb | |
parent | c20b1d64a72fd50c8d8de9d32d811b803ca1e6bb (diff) | |
download | redmine-c49451eb102d62fcc0982721ccad14087883f9ce.tar.gz redmine-c49451eb102d62fcc0982721ccad14087883f9ce.zip |
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/trunk@12070 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r-- | test/unit/user_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 52a7d64b7..f1da321aa 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -401,7 +401,7 @@ class UserTest < ActiveSupport::TestCase u = User.new u.mail_notification = 'foo' u.save - assert_not_nil u.errors[:mail_notification] + assert_not_equal [], u.errors[:mail_notification] end def test_password |