mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #4010 from arunagw/fix_test_activemodel
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