RSpec the easy way

Posted: Thu, 11 April 2013 | permalink | No comments

Anyone that has a fondness for good ol’ RSpec knows that there’s a fair number of matchers and predicates and whatnot involved. Life isn’t helped by the recent (as of 2.11) decision to switch to using expect everywhere instead of should (apparently should will be going away entirely at some point in the future).

There is a good looking RSpec cheatsheet out on the ‘net, but it dates from 2006, and things have changed since then. We’re using RSpec at work a lot at the moment, though, so our tech writer kindly updated it for the new-style syntax, gave it a nice blue tint, and put it out there for the world at large to use. Here is our updated RSpec cheatsheet for anyone who is interested.

I can tell you for certain that a double-sided, laminated version of this sucker looks very nice, and is a handy addition to the desk-of-many-things.


Post a comment

All comments are held for moderation; markdown formatting accepted.

This is a honeypot form. Do not use this form unless you want to get your IP address blacklisted. Use the second form below for comments.
Name: (required)
E-mail: (required, not published)
Website: (optional)
Name: (required)
E-mail: (required, not published)
Website: (optional)