From e17ff6d617abe3fa36c053eaed52e134074035a1 Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Sat, 8 May 2010 23:29:20 +0300 Subject: updated AR to work with the AMo model validation changes --- activerecord/test/cases/validations_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/cases/validations_test.rb') 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 -- cgit v1.2.3