rspec-wait
rspec-wait copied to clipboard
waiting on stdout?
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
I'm also wondering about this.