aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/validations_test.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2010-05-08 23:29:20 +0300
committerCarl Lerche <carllerche@mac.com>2010-05-08 23:51:36 +0300
commite17ff6d617abe3fa36c053eaed52e134074035a1 (patch)
tree47a84df59c7985b82393fd008d1536602d481efa /activerecord/test/cases/validations_test.rb
parent66913a76af9969ddf12021992eeb418e270bebe2 (diff)
downloadrails-e17ff6d617abe3fa36c053eaed52e134074035a1.tar.gz
rails-e17ff6d617abe3fa36c053eaed52e134074035a1.tar.bz2
rails-e17ff6d617abe3fa36c053eaed52e134074035a1.zip
updated AR to work with the AMo model validation changes
Diffstat (limited to 'activerecord/test/cases/validations_test.rb')
-rw-r--r--activerecord/test/cases/validations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/validations_test.rb b/activerecord/test/cases/validations_test.rb
index 937e08ac68..e1fb911cc9 100644
--- a/activerecord/test/cases/validations_test.rb
+++ b/activerecord/test/cases/validations_test.rb
@@ -44,7 +44,7 @@ class ValidationsTest < ActiveRecord::TestCase
def test_error_on_create
r = WrongReply.new
r.title = "Wrong Create"
- assert !r.valid?
+ assert !r.save
assert r.errors[:title].any?, "A reply with a bad title should mark that attribute as invalid"
assert_equal ["is Wrong Create"], r.errors[:title], "A reply with a bad content should contain an error"
end