Skip to content

Instantly share code, notes, and snippets.

@haio
Last active December 11, 2015 22:58
Show Gist options
  • Save haio/4673571 to your computer and use it in GitHub Desktop.
Save haio/4673571 to your computer and use it in GitHub Desktop.
RSpec
RSpec
#method_name ####################### instance method
.method_name ####################### class method
expect { something }.to change( something ).by(1/-1)
expect { something }.to change( something ).from(1).to(-1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment