aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/base_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb
index 226f163b52..d910215a0a 100755
--- a/activerecord/test/base_test.rb
+++ b/activerecord/test/base_test.rb
@@ -136,6 +136,11 @@ class BasicsTest < Test::Unit::TestCase
topic_reloaded = Topic.find(topic.id)
assert_equal("New Topic", topic_reloaded.title)
end
+
+ def test_save!
+ topic = Topic.new(:title => "New Topic")
+ assert topic.save!
+ end
def test_hashes_not_mangled
new_topic = { :title => "New Topic" }