Test for assignment to has_many associations.
Test for assignment to has_many associations.

Based on adzap's patch, hence he gets the authorship of this one.

leereilly/machinist,amiel/machinist,rubyhead/machinist,dominicsayers/machinist,dominicsayers/machinist,notahat/machinist,emmanuel/machinist,rubyhead/machinist