41c41 < --- > 655,668d654 < def test_should_set_an_error_into_the_parent_on_before_destroy < @child_1.class.before_destroy do |object| < object.errors.add(:name, :undeletable) < false < end < < assert_no_difference('@pirate.send(@association_name).count') do < @pirate.send(association_setter, @alternate_params[association_getter].merge('foo' => { :id => @child_1.id, '_destroy' => true })) < @pirate.save < end < < assert @pirate.errors[:"#{@association_name}.name"] < end < 786c772 < --- > 792c778 < --- > 798c784 < --- > 803c789 < --- > 808c794 < --- > 825c811 < --- > 831c817 < --- > 837c823 < --- > 842c828 < --- > 847c833 < --- >