rspec-wait icon indicating copy to clipboard operation
rspec-wait copied to clipboard

waiting on stdout?

Open lispercat opened this issue 6 years ago • 1 comments

sometimes it's necessary to execute the same command a few times in a row (like elasticsearch) to get to the desired state. For a simple example let's take: expect { system('pwd') }.to output("/home/kitchen\n").to_stdout_from_any_process How do I wrap it in wait_for block? The naive example below doesn't work expect { wait_for { system('pwd') }.to output("/home/kitchen\n").to_stdout_from_any_process }.not_to raise_error

lispercat avatar Jan 12 '19 21:01 lispercat

I'm also wondering about this.

asbjornu avatar Dec 08 '20 17:12 asbjornu