Fix uhwm_wait_output acceptance helper with strings

This commit is contained in:
Thibault Jouan
2015-04-18 19:52:43 +00:00
parent 78dffde6c9
commit 68cec67402

View File

@@ -30,7 +30,7 @@ module Uh
timeout_until do timeout_until do
case message case message
when Regexp then output.call =~ message when Regexp then output.call =~ message
when String then assert_partial_output_interactive message when String then output.call.include? message
end end
end end
rescue TimeoutError => e rescue TimeoutError => e