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

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