aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/autosave_association_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-02-19 00:42:15 +0100
committerXavier Noria <fxn@hashref.com>2011-02-19 00:42:51 +0100
commitce76cfc61f86931d5acc6db3c2c438cd5ea98255 (patch)
treed10fe7fc57d887df504d3c6d02fe43c91bedff86 /activerecord/test/cases/autosave_association_test.rb
parent18439e28e04a5ba2934145284d103711994ae757 (diff)
downloadrails-ce76cfc61f86931d5acc6db3c2c438cd5ea98255.tar.gz
rails-ce76cfc61f86931d5acc6db3c2c438cd5ea98255.tar.bz2
rails-ce76cfc61f86931d5acc6db3c2c438cd5ea98255.zip
fixes a merge conflict
Diffstat (limited to 'activerecord/test/cases/autosave_association_test.rb')
-rw-r--r--activerecord/test/cases/autosave_association_test.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb
index 0e93b468c1..ca59b3d6de 100644
--- a/activerecord/test/cases/autosave_association_test.rb
+++ b/activerecord/test/cases/autosave_association_test.rb
@@ -793,7 +793,6 @@ class TestDestroyAsPartOfAutosaveAssociation < ActiveRecord::TestCase
def test_should_destroy_habtm_as_part_of_the_save_transaction_if_they_were_marked_for_destruction
2.times { |i| @pirate.parrots.create!(:name => "parrots_#{i}") }
-<<<<<<< HEAD
assert !@pirate.parrots.any? { |parrot| parrot.marked_for_destruction? }
@pirate.parrots.each { |parrot| parrot.mark_for_destruction }
@@ -809,15 +808,6 @@ class TestDestroyAsPartOfAutosaveAssociation < ActiveRecord::TestCase
def test_should_skip_validation_on_habtm_if_marked_for_destruction
2.times { |i| @pirate.parrots.create!(:name => "parrots_#{i}") }
-=======
- # Stub the destroy method of the second child to raise an exception
- class << before.last
- def destroy(*args)
- super
- raise 'Oh noes!'
- end
- end
->>>>>>> 220cb107b672d65fdc0488d4ff310ab04b62b463
@pirate.parrots.each { |parrot| parrot.name = '' }
assert !@pirate.valid?