Fix asserting the correct exception message in dependencies test
Fix asserting the correct exception message in dependencies test

In Minitest, the second argument of assert_raise(s) accepts a string as
the message that should be shown in case of a failure in the assertion
(eg nothing was raised when it should), and not the exception message to
be matched.

To do that we need to save the exception returned from assert_raise(s)
into a local variable and check for the exception message using it.

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