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
This commit is contained in:
Toshi MARUYAMA 2011-10-07 04:16:42 +00:00
parent 5edabcd8b5
commit c76b114e9e
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ class UserTest < ActiveSupport::TestCase
u = User.new u = User.new
u.mail_notification = 'foo' u.mail_notification = 'foo'
u.save u.save
assert_not_nil u.errors.on(:mail_notification) assert_not_nil u.errors[:mail_notification]
end end
context "User#try_to_login" do context "User#try_to_login" do