class TestAutosaveAssociationOnAHasAndBelongsToManyAssociationWithAcceptsNestedAttributes

Public Instance Methods

setup() click to toggle source
Calls superclass method
# File activerecord/test/cases/autosave_association_test.rb, line 1574
def setup
  super
  @association_name = :parrots
  @associated_model_name = :parrot
  @habtm = true

  @pirate = Pirate.create(catchphrase: "Don' botharrr talkin' like one, savvy?")
  @child_1 = @pirate.parrots.create(name: "Posideons Killer")
  @child_2 = @pirate.parrots.create(name: "Killer bandita Dionne")
end