aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/validations_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/validations_test.rb')
-rwxr-xr-xactiverecord/test/validations_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/validations_test.rb b/activerecord/test/validations_test.rb
index 936c36e6cb..d0d644a567 100755
--- a/activerecord/test/validations_test.rb
+++ b/activerecord/test/validations_test.rb
@@ -141,6 +141,12 @@ class ValidationsTest < Test::Unit::TestCase
assert reply.save(false)
end
+ def test_create_without_validation_bang
+ count = Reply.count
+ assert_nothing_raised { Reply.new.save_without_validation! }
+ assert count+1, Reply.count
+ end
+
def test_validates_each
perform = true
hits = 0