aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/validations_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/validations_test.rb b/activerecord/test/validations_test.rb
index 736cad140a..a661193a98 100755
--- a/activerecord/test/validations_test.rb
+++ b/activerecord/test/validations_test.rb
@@ -64,6 +64,11 @@ class ValidationsTest < Test::Unit::TestCase
assert_equal "is Wrong Update", r.errors.on("title"), "A reply with a bad content should contain an error"
end
+ def test_invalid_record_exception
+ r = Reply.new
+ assert_raises(ActiveRecord::InvalidRecord) { r.save! }
+ end
+
def test_single_error_per_attr_iteration
r = Reply.new
r.save