Commit 210a7677 authored by tmaruyama's avatar tmaruyama
Browse files

Rails3: test: replace deprecated errors.on at...

Rails3: test: replace deprecated errors.on at test_validate_mail_notification_inclusion of unit/user_test.rb

git-svn-id: https://svn.redmine.org/redmine/trunk@7593 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 2bb868ad
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment