Skip to content
This repository
Browse code

Duplicate tests removed.

  • Loading branch information...
commit bd804d757d97f1a908e40b82930fe12453a7f5c8 1 parent 80b1f9e
Karunakar (Ruby) authored July 22, 2011
8  activerecord/test/cases/nested_attributes_test.rb
@@ -147,14 +147,6 @@ def test_destroy_works_independent_of_reject_if
147 147
     assert man.reload.interests.empty?
148 148
   end
149 149
 
150  
-  def test_has_many_association_updating_a_single_record
151  
-    Man.accepts_nested_attributes_for(:interests)
152  
-    man = Man.create(:name => 'John')
153  
-    interest = man.interests.create(:topic => 'photography')
154  
-    man.update_attributes({:interests_attributes => {:topic => 'gardening', :id => interest.id}})
155  
-    assert_equal 'gardening', interest.reload.topic
156  
-  end
157  
-
158 150
   def test_reject_if_with_blank_nested_attributes_id
159 151
     # When using a select list to choose an existing 'ship' id, with :include_blank => true
160 152
     Pirate.accepts_nested_attributes_for :ship, :reject_if => proc {|attributes| attributes[:id].blank? }

0 notes on commit bd804d7

Please sign in to comment.
Something went wrong with that request. Please try again.