Fix for #5579 involved the code change for both has_one and has_many relationships. The path included test only for has_one. This patch adds test for has_many relationship.
Fix for #5579 involved the code change for both has_one and has_many relationships. The path included test only for has_one. This patch adds test for has_many relationship.

[#5706 state:resolved]

Signed-off-by: José Valim <0c2436ea76ed86e37cc05f66dea18d48ef390882@gmail.com>

pschambacher/rails,eileencodes/rails,samphilipd/rails,yawboakye/rails,sergey-alekseev/rails,yahonda/rails,gauravtiwari/rails,kachick/rails,georgeclaghorn/rails,Sen-Zhang/rails,illacceptanything/illacceptanything,flanger001/rails,mohitnatoo/rails,bradleypriest/rails,Spin42/rails,maicher/rails,matrinox/rails,utilum/rails,tijwelch/rails,yahonda/rails,yalab/rails,utilum/rails,arunagw/rails,aditya-kapoor/rails,kaspth/rails,bogdanvlviv/rails,Erol/rails,gavingmiller/rails,untidy-hair/rails,arjes/rails,brchristian/rails,BlakeWilliams/rails,starknx/rails,tgxworld/rails,yhirano55/rails,yhirano55/rails,untidy-hair/rails,yhirano55/rails,jeremy/rails,schuetzm/rails,gfvcastro/rails,mtsmfm/railstest,tjschuck/rails,odedniv/rails,illacceptanything/illacceptanything,pvalena/rails,lcreid/rails,Envek/rails,felipecvo/rails,iainbeeston/rails,Stellenticket/rails,matrinox/rails,Erol/rails,amoody2108/TechForJustice,xlymian/rails,richseviora/rails,voray/rails,rbhitchcock/rails,vipulnsward/rails,jeremy/rails,EmmaB/rails-1,Edouard-chin/rails,kenta-s/rails,fabianoleittes/rails,88rabbit/newRails,arunagw/rails,yahonda/rails,gcourtemanche/rails,riseshia/railsguides.kr,mtsmfm/rails,travisofthenorth/rails,kddeisz/rails,richseviora/rails,amoody2108/TechForJustice,riseshia/railsguides.kr,schuetzm/rails,sealocal/rails,koic/rails,voray/rails,repinel/rails,joonyou/rails,kmayer/rails,ngpestelos/rails,prathamesh-sonpatki/rails,Envek/rails,mechanicles/rails,fabianoleittes/rails,esparta/rails,aditya-kapoor/rails,tgxworld/rails,ngpestelos/rails,Edouard-chin/rails,gfvcastro/rails,eileencodes/rails,kirs/rails-1,Edouard-chin/rails,vipulnsward/rails,MSP-Greg/rails,pvalena/rails,kmcphillips/rails,joonyou/rails,prathamesh-sonpatki/rails,printercu/rails,riseshia/railsguides.kr,88rabbit/newRails,georgeclaghorn/rails,arunagw/rails,matrinox/rails,lcreid/rails,vipulnsward/rails,BlakeWilliams/rails,palkan/rails,assain/rails,rossta/rails,tgxworld/rails,ledestin/rails,repinel/rails,repinel/rails,printercu/rails,mtsmfm/railstest,kachick/rails,alecspopa/rails,travisofthenorth/rails,marklocklear/rails,notapatch/rails,kirs/rails-1,rafaelfranca/omg-rails,marklocklear/rails,bolek/rails,Erol/rails,coreyward/rails,voray/rails,MSP-Greg/rails,illacceptanything/illacceptanything,mijoharas/rails,pschambacher/rails,yalab/rails,kddeisz/rails,starknx/rails,bradleypriest/rails,yasslab/railsguides.jp,Stellenticket/rails,yawboakye/rails,starknx/rails,Envek/rails,bradleypriest/rails,yalab/rails,shioyama/rails,arjes/rails,lcreid/rails,bogdanvlviv/rails,brchristian/rails,yasslab/railsguides.jp,vassilevsky/rails,xlymian/rails,rafaelfranca/omg-rails,deraru/rails,yahonda/rails,utilum/rails,rails/rails,yhirano55/rails,schuetzm/rails,Edouard-chin/rails,mathieujobin/reduced-rails-for-travis,assain/rails,EmmaB/rails-1,stefanmb/rails,odedniv/rails,ttanimichi/rails,Spin42/rails,88rabbit/newRails,joonyou/rails,MichaelSp/rails,repinel/rails,Sen-Zhang/rails,utilum/rails,tgxworld/rails,iainbeeston/rails,tjschuck/rails,stefanmb/rails,BlakeWilliams/rails,gfvcastro/rails,fabianoleittes/rails,kirs/rails-1,samphilipd/rails,rails/rails,betesh/rails,gfvcastro/rails,sealocal/rails,Vasfed/rails,Vasfed/rails,illacceptanything/illacceptanything,felipecvo/rails,shioyama/rails,mohitnatoo/rails,deraru/rails,illacceptanything/illacceptanything,stefanmb/rails,kmayer/rails,maicher/rails,hanystudy/rails,fabianoleittes/rails,printercu/rails,elfassy/rails,arunagw/rails,tjschuck/rails,BlakeWilliams/rails,mijoharas/rails,MichaelSp/rails,sergey-alekseev/rails,ledestin/rails,Vasfed/rails,bogdanvlviv/rails,gcourtemanche/rails,bolek/rails,tijwelch/rails,kenta-s/rails,iainbeeston/rails,yalab/rails,kamipo/rails,gcourtemanche/rails,illacceptanything/illacceptanything,kddeisz/rails,baerjam/rails,yasslab/railsguides.jp,travisofthenorth/rails,kmcphillips/rails,felipecvo/rails,notapatch/rails,elfassy/rails,hanystudy/rails,rossta/rails,flanger001/rails,MichaelSp/rails,gauravtiwari/rails,ttanimichi/rails,pvalena/rails,eileencodes/rails,coreyward/rails,printercu/rails,amoody2108/TechForJustice,kachick/rails,baerjam/rails,hanystudy/rails,prathamesh-sonpatki/rails,illacceptanything/illacceptanything,yasslab/railsguides.jp,illacceptanything/illacceptanything,jeremy/rails,lucasmazza/rails,rbhitchcock/rails,mijoharas/rails,flanger001/rails,untidy-hair/rails,esparta/rails,travisofthenorth/rails,aditya-kapoor/rails,kenta-s/rails,tjschuck/rails,palkan/rails,ttanimichi/rails,MSP-Greg/rails,bogdanvlviv/rails,kddeisz/rails,samphilipd/rails,Stellenticket/rails,notapatch/rails,ngpestelos/rails,mathieujobin/reduced-rails-for-travis,richseviora/rails,aditya-kapoor/rails,rbhitchcock/rails,baerjam/rails,xlymian/rails,gavingmiller/rails,illacceptanything/illacceptanything,betesh/rails,bolek/rails,arjes/rails,palkan/rails,notapatch/rails,vassilevsky/rails,mohitnatoo/rails,assain/rails,maicher/rails,Spin42/rails,mtsmfm/rails,betesh/rails,shioyama/rails,yawboakye/rails,Envek/rails,Erol/rails,esparta/rails,yawboakye/rails,eileencodes/rails,rossta/rails,elfassy/rails,rails/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,lcreid/rails,MSP-Greg/rails,ledestin/rails,brchristian/rails,joonyou/rails,pvalena/rails,esparta/rails,georgeclaghorn/rails,shioyama/rails,illacceptanything/illacceptanything,mtsmfm/railstest,pschambacher/rails,kmcphillips/rails,mohitnatoo/rails,vipulnsward/rails,Stellenticket/rails,mechanicles/rails,koic/rails,gauravtiwari/rails,lucasmazza/rails,deraru/rails,koic/rails,iainbeeston/rails,marklocklear/rails,illacceptanything/illacceptanything,gavingmiller/rails,rails/rails,palkan/rails,prathamesh-sonpatki/rails,EmmaB/rails-1,assain/rails,alecspopa/rails,kaspth/rails,georgeclaghorn/rails,coreyward/rails,betesh/rails,Vasfed/rails,untidy-hair/rails,Sen-Zhang/rails,kamipo/rails,lucasmazza/rails,flanger001/rails,tijwelch/rails,odedniv/rails,vassilevsky/rails,deraru/rails,mathieujobin/reduced-rails-for-travis,baerjam/rails,sergey-alekseev/rails,rafaelfranca/omg-rails,mechanicles/rails,alecspopa/rails,kamipo/rails,schuetzm/rails,kmcphillips/rails,kaspth/rails,mechanicles/rails,kmayer/rails,illacceptanything/illacceptanything,jeremy/rails,sealocal/rails,illacceptanything/illacceptanything,mtsmfm/rails,riseshia/railsguides.kr