Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Duplicate tests removed.

  • Loading branch information...
commit bd804d757d97f1a908e40b82930fe12453a7f5c8 1 parent 80b1f9e
@Karunakar Karunakar authored
Showing with 0 additions and 8 deletions.
  1. +0 −8 activerecord/test/cases/nested_attributes_test.rb
View
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? }
Please sign in to comment.
Something went wrong with that request. Please try again.