Skip to content

Commit

Permalink
Fix build. It seems that the Mocha's behavior were changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyj authored and carlosantoniodasilva committed Jan 26, 2013
1 parent d72c25e commit 4ebe101
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions activerecord/test/cases/autosave_association_test.rb
Expand Up @@ -615,7 +615,9 @@ def test_should_skip_validation_on_a_child_association_if_marked_for_destruction
def test_a_child_marked_for_destruction_should_not_be_destroyed_twice
@pirate.ship.mark_for_destruction
assert @pirate.save
@pirate.ship.expects(:destroy).never
class << @pirate.ship
def destroy; raise "Should not be called" end
end
assert @pirate.save
end

Expand Down Expand Up @@ -660,7 +662,9 @@ def test_should_skip_validation_on_a_parent_association_if_marked_for_destructio
def test_a_parent_marked_for_destruction_should_not_be_destroyed_twice
@ship.pirate.mark_for_destruction
assert @ship.save
@ship.pirate.expects(:destroy).never
class << @ship.pirate
def destroy; raise "Should not be called" end
end
assert @ship.save
end

Expand Down

0 comments on commit 4ebe101

Please sign in to comment.