Add test case for using sanitize method in the scope definition
Add test case for using sanitize method in the scope definition

Context: https://github.com/rails/rails/pull/29301#issuecomment-353200233

yawboakye/rails,georgeclaghorn/rails,fabianoleittes/rails,Edouard-chin/rails,pvalena/rails,rails/rails,tgxworld/rails,travisofthenorth/rails,illacceptanything/illacceptanything,mohitnatoo/rails,brchristian/rails,bogdanvlviv/rails,illacceptanything/illacceptanything,repinel/rails,esparta/rails,untidy-hair/rails,starknx/rails,untidy-hair/rails,notapatch/rails,joonyou/rails,lcreid/rails,bogdanvlviv/rails,untidy-hair/rails,utilum/rails,gauravtiwari/rails,jeremy/rails,shioyama/rails,joonyou/rails,repinel/rails,iainbeeston/rails,assain/rails,yasslab/railsguides.jp,Erol/rails,yahonda/rails,gfvcastro/rails,illacceptanything/illacceptanything,arunagw/rails,tjschuck/rails,palkan/rails,mechanicles/rails,Envek/rails,yawboakye/rails,yhirano55/rails,lcreid/rails,gfvcastro/rails,repinel/rails,arunagw/rails,Erol/rails,palkan/rails,vipulnsward/rails,BlakeWilliams/rails,aditya-kapoor/rails,flanger001/rails,odedniv/rails,rails/rails,vipulnsward/rails,shioyama/rails,yahonda/rails,schuetzm/rails,Erol/rails,yhirano55/rails,baerjam/rails,joonyou/rails,schuetzm/rails,Stellenticket/rails,Edouard-chin/rails,mohitnatoo/rails,assain/rails,deraru/rails,gauravtiwari/rails,gauravtiwari/rails,tjschuck/rails,EmmaB/rails-1,flanger001/rails,Stellenticket/rails,printercu/rails,kddeisz/rails,Stellenticket/rails,travisofthenorth/rails,Envek/rails,yalab/rails,brchristian/rails,tgxworld/rails,rafaelfranca/omg-rails,assain/rails,printercu/rails,eileencodes/rails,printercu/rails,Erol/rails,odedniv/rails,eileencodes/rails,kmcphillips/rails,georgeclaghorn/rails,illacceptanything/illacceptanything,travisofthenorth/rails,yasslab/railsguides.jp,palkan/rails,kddeisz/rails,jeremy/rails,baerjam/rails,notapatch/rails,yalab/rails,vipulnsward/rails,bogdanvlviv/rails,iainbeeston/rails,prathamesh-sonpatki/rails,MSP-Greg/rails,Vasfed/rails,illacceptanything/illacceptanything,Stellenticket/rails,pvalena/rails,rafaelfranca/omg-rails,MSP-Greg/rails,notapatch/rails,kddeisz/rails,BlakeWilliams/rails,utilum/rails,eileencodes/rails,tjschuck/rails,kmcphillips/rails,illacceptanything/illacceptanything,mohitnatoo/rails,Envek/rails,palkan/rails,Edouard-chin/rails,vipulnsward/rails,illacceptanything/illacceptanything,tjschuck/rails,illacceptanything/illacceptanything,kddeisz/rails,mohitnatoo/rails,betesh/rails,EmmaB/rails-1,tgxworld/rails,illacceptanything/illacceptanything,utilum/rails,yalab/rails,joonyou/rails,pvalena/rails,starknx/rails,prathamesh-sonpatki/rails,deraru/rails,BlakeWilliams/rails,betesh/rails,yhirano55/rails,arunagw/rails,lcreid/rails,prathamesh-sonpatki/rails,fabianoleittes/rails,pvalena/rails,aditya-kapoor/rails,baerjam/rails,yawboakye/rails,Edouard-chin/rails,fabianoleittes/rails,printercu/rails,rails/rails,iainbeeston/rails,starknx/rails,yawboakye/rails,flanger001/rails,kmcphillips/rails,baerjam/rails,notapatch/rails,shioyama/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,esparta/rails,jeremy/rails,yahonda/rails,shioyama/rails,schuetzm/rails,jeremy/rails,gfvcastro/rails,illacceptanything/illacceptanything,deraru/rails,utilum/rails,Vasfed/rails,mechanicles/rails,untidy-hair/rails,tgxworld/rails,aditya-kapoor/rails,illacceptanything/illacceptanything,betesh/rails,esparta/rails,Vasfed/rails,travisofthenorth/rails,georgeclaghorn/rails,repinel/rails,mechanicles/rails,prathamesh-sonpatki/rails,yalab/rails,betesh/rails,gfvcastro/rails,rafaelfranca/omg-rails,mechanicles/rails,esparta/rails,deraru/rails,Vasfed/rails,bogdanvlviv/rails,BlakeWilliams/rails,rails/rails,fabianoleittes/rails,MSP-Greg/rails,yasslab/railsguides.jp,brchristian/rails,EmmaB/rails-1,kmcphillips/rails,yahonda/rails,arunagw/rails,odedniv/rails,yhirano55/rails,aditya-kapoor/rails,assain/rails,eileencodes/rails,illacceptanything/illacceptanything,iainbeeston/rails,illacceptanything/illacceptanything,MSP-Greg/rails,flanger001/rails,Envek/rails,lcreid/rails,yasslab/railsguides.jp,schuetzm/rails,georgeclaghorn/rails