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:
parent
5edabcd8b5
commit
c76b114e9e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue