Update mocking/stubbing syntax to the new RSpec 3 syntax
Update mocking/stubbing syntax to the new RSpec 3 syntax

since2014/gitlabhq,ttasanen/gitlabhq,pulkit21/gitlabhq,dvrylc/gitlabhq,aaronsnyder/gitlabhq,iiet/iiet-git,mr-dxdy/gitlabhq,mmkassem/gitlabhq,Soullivaneuh/gitlabhq,bozaro/gitlabhq,vjustov/gitlabhq,dwrensha/gitlabhq,mrb/gitlabhq,folpindo/gitlabhq,lvfeng1130/gitlabhq,vjustov/gitlabhq,sakishum/gitlabhq,screenpages/gitlabhq,theonlydoo/gitlabhq,initiummedia/gitlabhq,sakishum/gitlabhq,Exeia/gitlabhq,flashbuckets/gitlabhq,martijnvermaat/gitlabhq,ttasanen/gitlabhq,allistera/gitlabhq,zrbsprite/gitlabhq,Exeia/gitlabhq,sue445/gitlabhq,Devin001/gitlabhq,Razer6/gitlabhq,michaKFromParis/gitlabhqold,larryli/gitlabhq,fscherwi/gitlabhq,Datacom/gitlabhq,bbodenmiller/gitlabhq,jrjang/gitlab-ce,since2014/gitlabhq,bozaro/gitlabhq,martijnvermaat/gitlabhq,rebecamendez/gitlabhq,Datacom/gitlabhq,revaret/gitlabhq,michaKFromParis/gitlabhqold,ordiychen/gitlabhq,salipro4ever/gitlabhq,wangcan2014/gitlabhq,yatish27/gitlabhq,ayufan/gitlabhq,koreamic/gitlabhq,htve/GitlabForChinese,nguyen-tien-mulodo/gitlabhq,lvfeng1130/gitlabhq,liyakun/gitlabhq,bigsurge/gitlabhq,hzy001/gitlabhq,tim-hoff/gitlabhq,jaepyoung/gitlabhq,tempbottle/gitlabhq,darkrasid/gitlabhq,shinexiao/gitlabhq,TheWatcher/gitlabhq,gopeter/gitlabhq,nmav/gitlabhq,dreampet/gitlab,dreampet/gitlab,daiyu/gitlab-zh,ngpestelos/gitlabhq,yama07/gitlabhq,louahola/gitlabhq,yfaizal/gitlabhq,hacsoc/gitlabhq,yfaizal/gitlabhq,LytayTOUCH/gitlabhq,pjknkda/gitlabhq,ttasanen/gitlabhq,jrjang/gitlabhq,pulkit21/gitlabhq,hzy001/gitlabhq,johnmyqin/gitlabhq,Tyrael/gitlabhq,fgbreel/gitlabhq,revaret/gitlabhq,joalmeid/gitlabhq,bigsurge/gitlabhq,salipro4ever/gitlabhq,michaKFromParis/gitlabhq,hacsoc/gitlabhq,MauriceMohlek/gitlabhq,michaKFromParis/gitlabhqold,cui-liqiang/gitlab-ce,it33/gitlabhq,cui-liqiang/gitlab-ce,folpindo/gitlabhq,nmav/gitlabhq,rumpelsepp/gitlabhq,rumpelsepp/gitlabhq,darkrasid/gitlabhq,flashbuckets/gitlabhq,lvfeng1130/gitlabhq,ayufan/gitlabhq,flashbuckets/gitlabhq,hacsoc/gitlabhq,louahola/gitlabhq,jirutka/gitlabhq,ikappas/gitlabhq,chadyred/gitlabhq,axilleas/gitlabhq,michaKFromParis/sparkslab,martinma4/gitlabhq,salipro4ever/gitlabhq,TheWatcher/gitlabhq,mr-dxdy/gitlabhq,salipro4ever/gitlabhq,k4zzk/gitlabhq,yfaizal/gitlabhq,yama07/gitlabhq,ferdinandrosario/gitlabhq,whluwit/gitlabhq,htve/GitlabForChinese,aaronsnyder/gitlabhq,fendoudeqingchunhh/gitlabhq,bigsurge/gitlabhq,jvanbaarsen/gitlabhq,gorgee/gitlabhq,gopeter/gitlabhq,screenpages/gitlabhq,DanielZhangQingLong/gitlabhq,ordiychen/gitlabhq,duduribeiro/gitlabhq,bozaro/gitlabhq,openwide-java/gitlabhq,jirutka/gitlabhq,dwrensha/gitlabhq,ttasanen/gitlabhq,manfer/gitlabhq,yonglehou/gitlabhq,fendoudeqingchunhh/gitlabhq,williamherry/gitlabhq,nmav/gitlabhq,allistera/gitlabhq,Exeia/gitlabhq,icedwater/gitlabhq,mente/gitlabhq,folpindo/gitlabhq,dreampet/gitlab,SVArago/gitlabhq,dvrylc/gitlabhq,mente/gitlabhq,johnmyqin/gitlabhq,fearenales/gitlabhq,OlegGirko/gitlab-ce,sekcheong/gitlabhq,sakishum/gitlabhq,theonlydoo/gitlabhq,eliasp/gitlabhq,sekcheong/gitlabhq,k4zzk/gitlabhq,manfer/gitlabhq,theonlydoo/gitlabhq,fscherwi/gitlabhq,dukex/gitlabhq,wangcan2014/gitlabhq,allistera/gitlabhq,LytayTOUCH/gitlabhq,kemenaran/gitlabhq,johnmyqin/gitlabhq,allysonbarros/gitlabhq,fpgentil/gitlabhq,theonlydoo/gitlabhq,ferdinandrosario/gitlabhq,gopeter/gitlabhq,mente/gitlabhq,luzhongyang/gitlabhq,whluwit/gitlabhq,hq804116393/gitlabhq,TheWatcher/gitlabhq,michaKFromParis/gitlabhq,stoplightio/gitlabhq,ngpestelos/gitlabhq,Telekom-PD/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,LUMC/gitlabhq,Devin001/gitlabhq,martinma4/gitlabhq,daiyu/gitlab-zh,H3Chief/gitlabhq,michaKFromParis/sparkslab,jirutka/gitlabhq,Devin001/gitlabhq,Telekom-PD/gitlabhq,cui-liqiang/gitlab-ce,johnmyqin/gitlabhq,rumpelsepp/gitlabhq,chadyred/gitlabhq,childbamboo/gitlabhq,dukex/gitlabhq,ksoichiro/gitlabhq,stanhu/gitlabhq,fearenales/gitlabhq,sonalkr132/gitlabhq,bbodenmiller/gitlabhq,it33/gitlabhq,SVArago/gitlabhq,pjknkda/gitlabhq,gorgee/gitlabhq,eliasp/gitlabhq,luzhongyang/gitlabhq,darkrasid/gitlabhq,darkrasid/gitlabhq,shinexiao/gitlabhq,axilleas/gitlabhq,since2014/gitlabhq,NKMR6194/gitlabhq,larryli/gitlabhq,yatish27/gitlabhq,larryli/gitlabhq,aaronsnyder/gitlabhq,cinderblock/gitlabhq,williamherry/gitlabhq,copystudy/gitlabhq,wangcan2014/gitlabhq,michaKFromParis/sparkslab,julianengel/gitlabhq,initiummedia/gitlabhq,NKMR6194/gitlabhq,fearenales/gitlabhq,hzy001/gitlabhq,louahola/gitlabhq,flashbuckets/gitlabhq,pulkit21/gitlabhq,Razer6/gitlabhq,Razer6/gitlabhq,kemenaran/gitlabhq,chenrui2014/gitlabhq,mr-dxdy/gitlabhq,nguyen-tien-mulodo/gitlabhq,mrb/gitlabhq,LytayTOUCH/gitlabhq,OtkurBiz/gitlabhq,pulkit21/gitlabhq,luzhongyang/gitlabhq,louahola/gitlabhq,yatish27/gitlabhq,t-zuehlsdorff/gitlabhq,jrjang/gitlab-ce,screenpages/gitlabhq,hacsoc/gitlabhq,daiyu/gitlab-zh,fearenales/gitlabhq,dplarson/gitlabhq,Telekom-PD/gitlabhq,kitech/gitlabhq,sakishum/gitlabhq,shinexiao/gitlabhq,larryli/gitlabhq,pjknkda/gitlabhq,martinma4/gitlabhq,mrb/gitlabhq,LytayTOUCH/gitlabhq,vjustov/gitlabhq,julianengel/gitlabhq,chenrui2014/gitlabhq,chenrui2014/gitlabhq,martijnvermaat/gitlabhq,koreamic/gitlabhq,screenpages/gitlabhq,jrjang/gitlab-ce,joalmeid/gitlabhq,stoplightio/gitlabhq,dwrensha/gitlabhq,it33/gitlabhq,cinderblock/gitlabhq,cinderblock/gitlabhq,k4zzk/gitlabhq,folpindo/gitlabhq,k4zzk/gitlabhq,fgbreel/gitlabhq,tk23/gitlabhq,Soullivaneuh/gitlabhq,Tyrael/gitlabhq,ordiychen/gitlabhq,sue445/gitlabhq,LUMC/gitlabhq,tk23/gitlabhq,H3Chief/gitlabhq,tk23/gitlabhq,joalmeid/gitlabhq,tk23/gitlabhq,fantasywind/gitlabhq,ferdinandrosario/gitlabhq,fgbreel/gitlabhq,liyakun/gitlabhq,ayufan/gitlabhq,tim-hoff/gitlabhq,fpgentil/gitlabhq,rebecamendez/gitlabhq,icedwater/gitlabhq,NKMR6194/gitlabhq,ferdinandrosario/gitlabhq,H3Chief/gitlabhq,szechyjs/gitlabhq,kemenaran/gitlabhq,fpgentil/gitlabhq,yama07/gitlabhq,jvanbaarsen/gitlabhq,kitech/gitlabhq,bbodenmiller/gitlabhq,kitech/gitlabhq,yfaizal/gitlabhq,szechyjs/gitlabhq,LUMC/gitlabhq,OtkurBiz/gitlabhq,copystudy/gitlabhq,aaronsnyder/gitlabhq,jrjang/gitlabhq,ksoichiro/gitlabhq,sekcheong/gitlabhq,Devin001/gitlabhq,sonalkr132/gitlabhq,bbodenmiller/gitlabhq,chadyred/gitlabhq,yonglehou/gitlabhq,OlegGirko/gitlab-ce,SVArago/gitlabhq,allysonbarros/gitlabhq,WSDC-NITWarangal/gitlabhq,duduribeiro/gitlabhq,michaKFromParis/sparkslab,delkyd/gitlabhq,dvrylc/gitlabhq,fendoudeqingchunhh/gitlabhq,Soullivaneuh/gitlabhq,fscherwi/gitlabhq,ikappas/gitlabhq,zrbsprite/gitlabhq,eliasp/gitlabhq,MauriceMohlek/gitlabhq,dplarson/gitlabhq,yonglehou/gitlabhq,icedwater/gitlabhq,Tyrael/gitlabhq,stoplightio/gitlabhq,OtkurBiz/gitlabhq,iiet/iiet-git,whluwit/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,yonglehou/gitlabhq,sonalkr132/gitlabhq,hq804116393/gitlabhq,stanhu/gitlabhq,liyakun/gitlabhq,OlegGirko/gitlab-ce,jrjang/gitlabhq,zBMNForks/gitlabhq,since2014/gitlabhq,sonalkr132/gitlabhq,htve/GitlabForChinese,tim-hoff/gitlabhq,H3Chief/gitlabhq,ikappas/gitlabhq,pjknkda/gitlabhq,childbamboo/gitlabhq,mmkassem/gitlabhq,duduribeiro/gitlabhq,chenrui2014/gitlabhq,SVArago/gitlabhq,youprofit/gitlabhq,Datacom/gitlabhq,williamherry/gitlabhq,shinexiao/gitlabhq,Exeia/gitlabhq,OlegGirko/gitlab-ce,Tyrael/gitlabhq,delkyd/gitlabhq,revaret/gitlabhq,hzy001/gitlabhq,MauriceMohlek/gitlabhq,DanielZhangQingLong/gitlabhq,DanielZhangQingLong/gitlabhq,Telekom-PD/gitlabhq,daiyu/gitlab-zh,sekcheong/gitlabhq,TheWatcher/gitlabhq,openwide-java/gitlabhq,cinderblock/gitlabhq,t-zuehlsdorff/gitlabhq,stanhu/gitlabhq,nguyen-tien-mulodo/gitlabhq,szechyjs/gitlabhq,jaepyoung/gitlabhq,whluwit/gitlabhq,mente/gitlabhq,dukex/gitlabhq,julianengel/gitlabhq,gorgee/gitlabhq,fgbreel/gitlabhq,sue445/gitlabhq,revaret/gitlabhq,vjustov/gitlabhq,Burick/gitlabhq,it33/gitlabhq,delkyd/gitlabhq,ngpestelos/gitlabhq,zrbsprite/gitlabhq,youprofit/gitlabhq,htve/GitlabForChinese,martijnvermaat/gitlabhq,tempbottle/gitlabhq,dplarson/gitlabhq,LUMC/gitlabhq,szechyjs/gitlabhq,dwrensha/gitlabhq,martinma4/gitlabhq,michaKFromParis/gitlabhq,axilleas/gitlabhq,copystudy/gitlabhq,duduribeiro/gitlabhq,initiummedia/gitlabhq,ksoichiro/gitlabhq,fscherwi/gitlabhq,chadyred/gitlabhq,stoplightio/gitlabhq,gorgee/gitlabhq,WSDC-NITWarangal/gitlabhq,jvanbaarsen/gitlabhq,zBMNForks/gitlabhq,bigsurge/gitlabhq,Razer6/gitlabhq,koreamic/gitlabhq,fpgentil/gitlabhq,nguyen-tien-mulodo/gitlabhq,tempbottle/gitlabhq,Soullivaneuh/gitlabhq,t-zuehlsdorff/gitlabhq,fendoudeqingchunhh/gitlabhq,rebecamendez/gitlabhq,childbamboo/gitlabhq,julianengel/gitlabhq,OtkurBiz/gitlabhq,jrjang/gitlab-ce,mrb/gitlabhq,jaepyoung/gitlabhq,eliasp/gitlabhq,DanielZhangQingLong/gitlabhq,allysonbarros/gitlabhq,kemenaran/gitlabhq,allistera/gitlabhq,Burick/gitlabhq,liyakun/gitlabhq,gopeter/gitlabhq,zrbsprite/gitlabhq,cui-liqiang/gitlab-ce,hq804116393/gitlabhq,nmav/gitlabhq,fantasywind/gitlabhq,koreamic/gitlabhq,lvfeng1130/gitlabhq,sue445/gitlabhq,jrjang/gitlabhq,zBMNForks/gitlabhq,Datacom/gitlabhq,jirutka/gitlabhq,dukex/gitlabhq,zBMNForks/gitlabhq,manfer/gitlabhq,mr-dxdy/gitlabhq,NKMR6194/gitlabhq,childbamboo/gitlabhq,ikappas/gitlabhq,wangcan2014/gitlabhq,rumpelsepp/gitlabhq,ngpestelos/gitlabhq,jaepyoung/gitlabhq,yatish27/gitlabhq,tempbottle/gitlabhq,openwide-java/gitlabhq,initiummedia/gitlabhq,stanhu/gitlabhq,joalmeid/gitlabhq,WSDC-NITWarangal/gitlabhq,hq804116393/gitlabhq,ayufan/gitlabhq,youprofit/gitlabhq,dplarson/gitlabhq,ksoichiro/gitlabhq,copystudy/gitlabhq,michaKFromParis/gitlabhq,yama07/gitlabhq,allysonbarros/gitlabhq,MauriceMohlek/gitlabhq,youprofit/gitlabhq,jvanbaarsen/gitlabhq,manfer/gitlabhq,mmkassem/gitlabhq,fantasywind/gitlabhq,dvrylc/gitlabhq,rebecamendez/gitlabhq,bozaro/gitlabhq,luzhongyang/gitlabhq,ordiychen/gitlabhq,icedwater/gitlabhq,fantasywind/gitlabhq,kitech/gitlabhq,Burick/gitlabhq,Burick/gitlabhq,iiet/iiet-git,t-zuehlsdorff/gitlabhq,WSDC-NITWarangal/gitlabhq,michaKFromParis/gitlabhqold,openwide-java/gitlabhq,tim-hoff/gitlabhq,williamherry/gitlabhq,delkyd/gitlabhq