summaryrefslogtreecommitdiffstats
path: root/test/unit/user_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-07 04:16:42 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-07 04:16:42 +0000
commitc76b114e9e057245fef0538121bd2ba00ce74171 (patch)
tree4225f19825bd0891519c4fc997afdb15fa6c3833 /test/unit/user_test.rb
parent5edabcd8b5a85c9c439a6a2f0e1a7add62c5aae7 (diff)
downloadredmine-c76b114e9e057245fef0538121bd2ba00ce74171.tar.gz
redmine-c76b114e9e057245fef0538121bd2ba00ce74171.zip
Rails3: test: replace deprecated errors.on at test_validate_mail_notification_inclusion of unit/user_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7593 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r--test/unit/user_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index 132ddb5b2..5f7150d6e 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -344,7 +344,7 @@ class UserTest < ActiveSupport::TestCase
u = User.new
u.mail_notification = 'foo'
u.save
- assert_not_nil u.errors.on(:mail_notification)
+ assert_not_nil u.errors[:mail_notification]
end
context "User#try_to_login" do