You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm fixing the deprecation warnings in my app, and message suggests me to use expect(all_commands).to have_output_on_stdout /output/, but the matcher doesn't seem to work with all_commands .
Summary
I'm fixing the deprecation warnings in my app, and message suggests me to use
expect(all_commands).to have_output_on_stdout /output/
, but the matcher doesn't seem to work withall_commands
.Expected Behavior
Given a command:
and the expectation:
The test should pass.
Current Behavior
The test fails with the message:
Possible Solution
The
have_output_on_stdout
matcher expects an object that responds tostdout
:all_commands
to respond tostdout
have_output_on_stdout
to handle Arrayslast_command_started
Maybe the matcher can also be updated to provide a more meaningful message when it receives an object it can't handle.
Steps to Reproduce (for bugs)
(I didn't provide a list of steps because the bug is fairly easy to reproduce. If you need more info let me know)
Context & Motivation
I wasn't able to follow the warnings and update my app successfully.
Your Environment
The text was updated successfully, but these errors were encountered: