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/110802 to your computer and use it in GitHub Desktop.
Save lucashungaro/110802 to your computer and use it in GitHub Desktop.
Mocha::Configuration.prevent(:stubbing_non_existent_method) #prevents stubbing of non-existent methods
Mocha::Configuration.prevent(:stubbing_method_unnecessarily) #prevents stubbing of unused methods
Mocha::Configuration.prevent(:stubbing_non_public_method) #prevents stubbing of non-public methods
Mocha::Configuration.prevent(:stubbing_method_on_non_mock_object) #prevents stubbing on concrete objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment