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:
parent
3346de600f
commit
4fac64b1cc
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class ValidatesTest < ActiveModel::TestCase
|
||||||
|
|
||||||
def test_validates_with_messages_empty
|
def test_validates_with_messages_empty
|
||||||
Person.validates :title, :presence => {:message => "" }
|
Person.validates :title, :presence => {:message => "" }
|
||||||
person = Person.new(:title => '')
|
person = Person.new
|
||||||
assert !person.valid?, 'person should not be valid.'
|
assert !person.valid?, 'person should not be valid.'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue