-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
Support requiring an exact match for validation errors #70
Conversation
Without this the tests were failing for me with the following error. Upgrading Pry to latest fixed this. ``` Failure/Error: require 'pry' NameError: undefined method `=~' for class `Pry::Code' ``` QVA-182
The exact same `failure` is already specified in a `let` within this `context` and is used by all other tests in this `context`.
This allows writing more thorough tests, where unexpected failures will cause tests to fail when `.exactly` is added to the chain. QVA-182
This allows quick validation + documentation without having to set up seprate modules and test files. QVA-182
Move the functions to class functions to avoid having to create some sort of an instance within the doctets. Diff best viewed with whitespace ignored. QVA-182
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Have not used doctests before, where are the tests being run?
They are run right after rspec tests in the Run tests step in CI (the CI workflow triggers the
|
They can also be run locally with |
This allows writing more thorough tests, where unexpected failures will
cause tests to fail when
.exactly
is added to the chain.QVA-182