diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-03-15 02:32:14 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-03-15 02:32:14 +0000 |
commit | c42cd3c3834e13bd9eb0a444e0d6073aee548125 (patch) | |
tree | 290b94b2b865210a6ad9d1a2eb676838f031e70e /activerecord/test | |
parent | c32fa73ea15d0d1b355b1f88f82757d79f82ba85 (diff) | |
download | rails-c42cd3c3834e13bd9eb0a444e0d6073aee548125.tar.gz rails-c42cd3c3834e13bd9eb0a444e0d6073aee548125.tar.bz2 rails-c42cd3c3834e13bd9eb0a444e0d6073aee548125.zip |
make save! return true on success[johan@johansorensen.com]. Closes #4173
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3871 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/base_test.rb | 5 |
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" } |