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_output
Hi folks,
Would you be willing to accept a PR that allows the following?
expect { some_method }.to_output(/This stuff/, /and this stuff/).to_stdout
As to_output currently only accepts one argument, the only solution I can see is to do the following:
expect { some_method }.to_output(/This stuff/).to_stdout expect { some_method }.to_output(/and this stuff/).to_stdout
and this is less than ideal when some_method is expensive.
some_method
The text was updated successfully, but these errors were encountered:
This is already supported by passing a compound matcher:
expect { some_method }.to_output( a_string_matching(/This stuff/).and matching(/and this stuff/ ).to_stdout
Sorry, something went wrong.
No branches or pull requests
Hi folks,
Would you be willing to accept a PR that allows the following?
As
to_output
currently only accepts one argument, the only solution I can see is to do the following:and this is less than ideal when
some_method
is expensive.The text was updated successfully, but these errors were encountered: