Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucashungaro/110804 to your computer and use it in GitHub Desktop.
Save lucashungaro/110804 to your computer and use it in GitHub Desktop.
# default - allows the condition
Mocha::Configuration.allow(condition)
# just emits a warning when the condition occurs
Mocha::Configuration.warn_when(condition)
# throws and error when the condition occurs
Mocha::Configuration.prevent(condition)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment