Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created April 16, 2013 12:10
Show Gist options
  • Save oivoodoo/5395446 to your computer and use it in GitHub Desktop.
Save oivoodoo/5395446 to your computer and use it in GitHub Desktop.
Replace old rspec style with expect using vim regexp
%s/\(\S\+\).should\(\s\+\)==\s*\(.\+\)/expect(\1).to\2eq(\3)/
Example:
row.day.should == 'value'
expect(row.day).to eq('value')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment