Permalink
Browse files

Duplicate tests removed.

  • Loading branch information...
1 parent 80b1f9e commit bd804d757d97f1a908e40b82930fe12453a7f5c8 @Karunakar Karunakar committed Jul 22, 2011
Showing with 0 additions and 8 deletions.
  1. +0 −8 activerecord/test/cases/nested_attributes_test.rb
@@ -147,14 +147,6 @@ def test_destroy_works_independent_of_reject_if
assert man.reload.interests.empty?
end
- def test_has_many_association_updating_a_single_record
- Man.accepts_nested_attributes_for(:interests)
- man = Man.create(:name => 'John')
- interest = man.interests.create(:topic => 'photography')
- man.update_attributes({:interests_attributes => {:topic => 'gardening', :id => interest.id}})
- assert_equal 'gardening', interest.reload.topic
- end
-
def test_reject_if_with_blank_nested_attributes_id
# When using a select list to choose an existing 'ship' id, with :include_blank => true
Pirate.accepts_nested_attributes_for :ship, :reject_if => proc {|attributes| attributes[:id].blank? }

0 comments on commit bd804d7

Please sign in to comment.