class InverseMultipleHasManyInversesForSameModel
NOTE - these tests might not be meaningful, ripped as they were from the parental_control plugin which would guess the inverse rather than look for an explicit configuration option.
Public Instance Methods
test_that_we_can_create_associations_that_have_the_same_reciprocal_name_from_different_models()
click to toggle source
# File activerecord/test/cases/associations/inverse_associations_test.rb, line 719 def test_that_we_can_create_associations_that_have_the_same_reciprocal_name_from_different_models assert_nothing_raised do i = Interest.first i.build_zine(title: "Get Some in Winter! 2008") i.build_man(name: "Gordon") i.save! end end
test_that_we_can_load_associations_that_have_the_same_reciprocal_name_from_different_models()
click to toggle source
# File activerecord/test/cases/associations/inverse_associations_test.rb, line 711 def test_that_we_can_load_associations_that_have_the_same_reciprocal_name_from_different_models assert_nothing_raised do i = Interest.first i.zine i.man end end