1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fixed test "ArgumentError: wrong number of arguments(1 for 0)"

This commit is contained in:
Arun Agrawal 2011-12-17 16:47:51 +05:30
parent 3346de600f
commit 4fac64b1cc

View file

@ -18,7 +18,7 @@ class ValidatesTest < ActiveModel::TestCase
def test_validates_with_messages_empty
Person.validates :title, :presence => {:message => "" }
person = Person.new(:title => '')
person = Person.new
assert !person.valid?, 'person should not be valid.'
end