We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To start off the Mocha section (#37) I would propose these as recommended configuration settings:
Mocha.configure do |c| c.stubbing_method_on_nil = :prevent c.stubbing_non_existent_method = :prevent c.stubbing_non_public_method = :prevent end
The first two can prevent subtle bugs which may cause false passes.
The third encourages better design by avoiding tests having knowledge of private implementation details.
https://mocha.jamesmead.org/Mocha/Configuration.html
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To start off the Mocha section (#37) I would propose these as recommended configuration settings:
The first two can prevent subtle bugs which may cause false passes.
The third encourages better design by avoiding tests having knowledge of private implementation details.
https://mocha.jamesmead.org/Mocha/Configuration.html
The text was updated successfully, but these errors were encountered: