vim regexp para substituir mocha ‘stubs (). retorna’ style com rspec ‘allow (). to receive ()’

Substituir o padrão:

%s/(S+).stubs((:S+)).returns((S+))/allow(1).to receive(2).and_return(3)/gc

Antes:

controller.stubs(:current_account).returns(@account)

Depois de:

allow(controller).to receive(:current_account).and_return(@account)