Simplify query conditions a bit in nested attributes test
Simplify query conditions a bit in nested attributes test

Also refactor the test a bit.

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