mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:01 -05:00
Fixed test "ArgumentError: wrong number of arguments(1 for 0)"
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user