aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-03-25 15:09:48 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-03-25 15:09:48 -0300
commite94e6c27af495a2460c811bb506459f1428dec6b (patch)
tree17d01f309bd409c023b181b8dbcbfa390df5d350 /activerecord/test
parent9a976ab5756371dd434adda2ff01af3a83d0f63c (diff)
downloadrails-e94e6c27af495a2460c811bb506459f1428dec6b.tar.gz
rails-e94e6c27af495a2460c811bb506459f1428dec6b.tar.bz2
rails-e94e6c27af495a2460c811bb506459f1428dec6b.zip
Revert "Merge pull request #8313 from alan/only_save_changed_has_one_objects"
This reverts commit 6e3ab3e15faf782f6a937ccf5574a4fb63e3e353, reversing changes made to 39e07b64ce3f4bb55e60ba0266e677f8e4f4893a. Conflicts: activerecord/CHANGELOG.md activerecord/test/cases/autosave_association_test.rb
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/autosave_association_test.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb
index 09892d50ba..f7584c3a51 100644
--- a/activerecord/test/cases/autosave_association_test.rb
+++ b/activerecord/test/cases/autosave_association_test.rb
@@ -683,23 +683,10 @@ class TestDestroyAsPartOfAutosaveAssociation < ActiveRecord::TestCase
end
end
- @ship.pirate.catchphrase = "Changed Catchphrase"
-
assert_raise(RuntimeError) { assert !@pirate.save }
assert_not_nil @pirate.reload.ship
end
- def test_should_save_changed_has_one_changed_object_if_child_is_saved
- @pirate.ship.name = "NewName"
- assert @pirate.save
- assert_equal "NewName", @pirate.ship.reload.name
- end
-
- def test_should_not_save_changed_has_one_unchanged_object_if_child_is_saved
- @pirate.ship.expects(:save).never
- assert @pirate.save
- end
-
# belongs_to
def test_should_destroy_a_parent_association_as_part_of_the_save_transaction_if_it_was_marked_for_destroyal
assert !@ship.pirate.marked_for_destruction?