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