lib/regextest.rb in regextest-0.1.6 vs lib/regextest.rb in regextest-0.1.8

- old
+ new

@@ -176,10 +176,10 @@ # Verifies the result def verify(result_string) md = nil begin - timeout(TstConstTimeout){ + Timeout.timeout(TstConstTimeout){ md = @reg_exp.match(result_string) } rescue Timeout::Error => ex raise(RegextestTimeout, "Timeout(#{TstConstTimeout} sec) detected while verifying string(#{result_string}) matched with regex(#{@reg_exp}).")