Isolation tests intentionally avoid loading any state (because they're often testing things that have their own load path semantics that should not be polluted), so rack/test is not yet  on the load path. Moving require "rack/test" into the setup means and after boot_rails means that it'll be required after the laod path has been altered to add in the Rails vendor/gems
Isolation tests intentionally avoid loading any state (because they're often testing things that have their own load path semantics that should not be polluted), so rack/test is not yet  on the load path. Moving require "rack/test" into the setup means and after boot_rails means that it'll be required after the laod path has been altered to add in the Rails vendor/gems
richseviora/rails,mohitnatoo/rails,koic/rails,vassilevsky/rails,sealocal/rails,fabianoleittes/rails,tijwelch/rails,travisofthenorth/rails,iainbeeston/rails,illacceptanything/illacceptanything,ttanimichi/rails,bolek/rails,fabianoleittes/rails,BlakeWilliams/rails,kaspth/rails,ttanimichi/rails,elfassy/rails,illacceptanything/illacceptanything,shioyama/rails,riseshia/railsguides.kr,eileencodes/rails,Stellenticket/rails,utilum/rails,MichaelSp/rails,MichaelSp/rails,baerjam/rails,untidy-hair/rails,odedniv/rails,vipulnsward/rails,arunagw/rails,matrinox/rails,Spin42/rails,kddeisz/rails,illacceptanything/illacceptanything,deraru/rails,vipulnsward/rails,bogdanvlviv/rails,hanystudy/rails,pvalena/rails,tjschuck/rails,assain/rails,esparta/rails,kmayer/rails,brchristian/rails,lcreid/rails,Spin42/rails,baerjam/rails,rbhitchcock/rails,mechanicles/rails,BlakeWilliams/rails,palkan/rails,repinel/rails,yalab/rails,pvalena/rails,tgxworld/rails,flanger001/rails,Stellenticket/rails,betesh/rails,tijwelch/rails,joonyou/rails,Vasfed/rails,illacceptanything/illacceptanything,prathamesh-sonpatki/rails,Spin42/rails,rbhitchcock/rails,Edouard-chin/rails,mtsmfm/rails,samphilipd/rails,fabianoleittes/rails,utilum/rails,rbhitchcock/rails,baerjam/rails,Stellenticket/rails,mechanicles/rails,assain/rails,yhirano55/rails,rails/rails,mtsmfm/rails,kmayer/rails,yahonda/rails,BlakeWilliams/rails,arunagw/rails,sealocal/rails,utilum/rails,EmmaB/rails-1,illacceptanything/illacceptanything,bogdanvlviv/rails,maicher/rails,Sen-Zhang/rails,yhirano55/rails,Envek/rails,notapatch/rails,mathieujobin/reduced-rails-for-travis,amoody2108/TechForJustice,travisofthenorth/rails,jeremy/rails,joonyou/rails,yhirano55/rails,arjes/rails,arunagw/rails,georgeclaghorn/rails,rossta/rails,illacceptanything/illacceptanything,felipecvo/rails,88rabbit/newRails,voray/rails,mohitnatoo/rails,travisofthenorth/rails,arjes/rails,Envek/rails,yasslab/railsguides.jp,hanystudy/rails,illacceptanything/illacceptanything,yasslab/railsguides.jp,alecspopa/rails,mechanicles/rails,kmcphillips/rails,starknx/rails,samphilipd/rails,lucasmazza/rails,deraru/rails,coreyward/rails,matrinox/rails,Erol/rails,kirs/rails-1,palkan/rails,eileencodes/rails,xlymian/rails,deraru/rails,printercu/rails,starknx/rails,EmmaB/rails-1,marklocklear/rails,ttanimichi/rails,matrinox/rails,kachick/rails,riseshia/railsguides.kr,yawboakye/rails,amoody2108/TechForJustice,elfassy/rails,illacceptanything/illacceptanything,notapatch/rails,kmcphillips/rails,iainbeeston/rails,tjschuck/rails,Envek/rails,notapatch/rails,bradleypriest/rails,Vasfed/rails,illacceptanything/illacceptanything,betesh/rails,gfvcastro/rails,travisofthenorth/rails,MichaelSp/rails,BlakeWilliams/rails,brchristian/rails,kenta-s/rails,flanger001/rails,yasslab/railsguides.jp,untidy-hair/rails,notapatch/rails,palkan/rails,utilum/rails,riseshia/railsguides.kr,kaspth/rails,kmayer/rails,lcreid/rails,odedniv/rails,hanystudy/rails,mijoharas/rails,betesh/rails,mtsmfm/railstest,deraru/rails,ngpestelos/rails,kirs/rails-1,voray/rails,kirs/rails-1,yawboakye/rails,kaspth/rails,elfassy/rails,mathieujobin/reduced-rails-for-travis,gavingmiller/rails,odedniv/rails,felipecvo/rails,coreyward/rails,Envek/rails,Vasfed/rails,pschambacher/rails,brchristian/rails,gcourtemanche/rails,88rabbit/newRails,untidy-hair/rails,jeremy/rails,yhirano55/rails,illacceptanything/illacceptanything,pvalena/rails,kmcphillips/rails,ledestin/rails,bolek/rails,esparta/rails,MSP-Greg/rails,repinel/rails,assain/rails,printercu/rails,schuetzm/rails,tjschuck/rails,sergey-alekseev/rails,gcourtemanche/rails,sealocal/rails,marklocklear/rails,mijoharas/rails,aditya-kapoor/rails,pschambacher/rails,joonyou/rails,coreyward/rails,ngpestelos/rails,jeremy/rails,vipulnsward/rails,fabianoleittes/rails,kddeisz/rails,shioyama/rails,mohitnatoo/rails,mtsmfm/railstest,ledestin/rails,vassilevsky/rails,rossta/rails,lucasmazza/rails,tgxworld/rails,amoody2108/TechForJustice,gfvcastro/rails,mathieujobin/reduced-rails-for-travis,koic/rails,flanger001/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,printercu/rails,printercu/rails,gauravtiwari/rails,yalab/rails,xlymian/rails,lcreid/rails,esparta/rails,jeremy/rails,georgeclaghorn/rails,gavingmiller/rails,Edouard-chin/rails,yahonda/rails,illacceptanything/illacceptanything,tijwelch/rails,Sen-Zhang/rails,richseviora/rails,Sen-Zhang/rails,yahonda/rails,Edouard-chin/rails,stefanmb/rails,eileencodes/rails,yasslab/railsguides.jp,rafaelfranca/omg-rails,kddeisz/rails,starknx/rails,kenta-s/rails,palkan/rails,kamipo/rails,rails/rails,aditya-kapoor/rails,prathamesh-sonpatki/rails,lucasmazza/rails,yalab/rails,rafaelfranca/omg-rails,betesh/rails,rossta/rails,gauravtiwari/rails,repinel/rails,aditya-kapoor/rails,MSP-Greg/rails,pschambacher/rails,georgeclaghorn/rails,kenta-s/rails,joonyou/rails,kmcphillips/rails,vassilevsky/rails,alecspopa/rails,aditya-kapoor/rails,EmmaB/rails-1,shioyama/rails,yawboakye/rails,esparta/rails,kachick/rails,mtsmfm/rails,samphilipd/rails,bogdanvlviv/rails,mohitnatoo/rails,arjes/rails,gfvcastro/rails,xlymian/rails,marklocklear/rails,rafaelfranca/omg-rails,prathamesh-sonpatki/rails,lcreid/rails,gcourtemanche/rails,bradleypriest/rails,mechanicles/rails,yawboakye/rails,gavingmiller/rails,bradleypriest/rails,pvalena/rails,illacceptanything/illacceptanything,schuetzm/rails,stefanmb/rails,bogdanvlviv/rails,gfvcastro/rails,tgxworld/rails,Erol/rails,ngpestelos/rails,assain/rails,rails/rails,repinel/rails,ledestin/rails,georgeclaghorn/rails,richseviora/rails,eileencodes/rails,illacceptanything/illacceptanything,MSP-Greg/rails,tjschuck/rails,stefanmb/rails,alecspopa/rails,prathamesh-sonpatki/rails,Erol/rails,Vasfed/rails,yahonda/rails,rails/rails,arunagw/rails,Edouard-chin/rails,sergey-alekseev/rails,Stellenticket/rails,bolek/rails,kamipo/rails,mtsmfm/railstest,flanger001/rails,maicher/rails,mijoharas/rails,maicher/rails,voray/rails,yalab/rails,shioyama/rails,tgxworld/rails,riseshia/railsguides.kr,schuetzm/rails,untidy-hair/rails,sergey-alekseev/rails,iainbeeston/rails,kachick/rails,schuetzm/rails,baerjam/rails,kamipo/rails,MSP-Greg/rails,kddeisz/rails,felipecvo/rails,88rabbit/newRails,koic/rails,vipulnsward/rails,iainbeeston/rails,gauravtiwari/rails,Erol/rails