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
There's no way (at least that I can see) to convert the following into a spy format:
mock(user).valid? { true }.once.then.save(:validate => false) user.some_method_that_calls_valid?_and_save
Ideally I would like to be able to say:
stub(user).valid? { true } stub(user).save user.some_method_that_calls_valid?_and_save user.should have_received.valid?.then.save(:validate => false)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There's no way (at least that I can see) to convert the following into a spy format:
Ideally I would like to be able to say:
The text was updated successfully, but these errors were encountered: