diff options
author | Arun Agrawal <arunagw@gmail.com> | 2011-12-17 16:47:51 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2011-12-17 16:49:01 +0530 |
commit | 4fac64b1cca42820d55873575171d25023c573c4 (patch) | |
tree | e430aec12202ef1f342e09c905a76c4cddcce851 /activemodel/test/cases | |
parent | 3346de600f3c83b0a1deb737c24831856a2e58b8 (diff) | |
download | rails-4fac64b1cca42820d55873575171d25023c573c4.tar.gz rails-4fac64b1cca42820d55873575171d25023c573c4.tar.bz2 rails-4fac64b1cca42820d55873575171d25023c573c4.zip |
Fixed test "ArgumentError: wrong number of arguments(1 for 0)"
Diffstat (limited to 'activemodel/test/cases')
-rw-r--r-- | activemodel/test/cases/validations/validates_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/validations/validates_test.rb b/activemodel/test/cases/validations/validates_test.rb index ad3be4a3c1..575154ffbd 100644 --- a/activemodel/test/cases/validations/validates_test.rb +++ b/activemodel/test/cases/validations/validates_test.rb @@ -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 |