29 Nov '12, 1pm

Convert to the new Rspec syntax with Vim macros: Rspec 2.11 introduces a new syntax: `expect(foo).to eq('bar')`

Convert to the new Rspec syntax with Vim macros Posted by sleeplessgeek on November 29, 2012 — 0 comments Rspec 2.11 introduces a new syntax: `expect(foo).to eq('bar')` instead of `foo.should eq('bar')`. If you're using Vim, you can record and play back macros to make converting your tests less of a chore. Here's how . Comments “ ” Post a Comment Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!

Full article: http://www.rubyflow.com/items/8564-convert-to-the-new-rsp...

Tweets