:%s/:\(\w\+\)\( *\)=>\( *\)/\1: /g
:%s/\s\+$//
Preferably in this very order
:%s/^\( \+\)\(.\+\)\.any_instance.stub/\1allow_any_instance_of(\2).to receive/g
:%s/^\( \+\)\(.\+\)\.stub_chain/\1allow(\2).to receive_message_chain/g
:%s/^\( \+\)\(.\+\)\.stub/\1allow(\2).to receive/g
:%s/^\( \+\)\(.\+\)\.should\( \+\)be_true/\1expect(\2).to\3be_truthy/g
:%s/^\( \+\)\(.\+\)\.should\( \+\)be_false/\1expect(\2).to\3be_falsey/g
:%s/^\( \+\)\(.\+\)\.should\( \+\)== nil/\1expect(\2).to\3be_nil/g
:%s/^\( \+\)\(.\+\)\.should\( \+\)==/\1expect(\2).to\3eq/g
:%s/^\( \+\)\(.\+\)\.should\( \+\)=\~/\1expect(\2).to\3match/g
:%s/^\( \+\)\(.\+\)\.should_not\( \+\)==/\1expect(\2).not_to\3eq/g
:%s/^\( \+\)\(.\+\)\.should/\1expect(\2).to/g