spec/support/cellect_helper.rb in cellect-client-0.0.9 vs spec/support/cellect_helper.rb in cellect-client-0.1.0

- old
+ new

@@ -1,8 +1,8 @@ require 'timeout' module CellectHelper - def pass_until(obj, is: is) + def pass_until(obj, is:) Timeout::timeout(1) do Thread.pass until obj.state == is end rescue => e puts "Timeout waiting for #{ obj.inspect } to be #{ is }"