Sha256: a170f9916fb78f6f351d8e7b5e9d6556e94b88fb991c9d29b1011bfa4515483b

Contents?: true

Size: 243 Bytes

Versions: 18

Compression:

Stored size: 243 Bytes

Contents

require 'timeout'

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

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
cellect-client-0.0.9 spec/support/cellect_helper.rb
cellect-server-0.0.9 spec/support/cellect_helper.rb
cellect-client-0.0.8 spec/support/cellect_helper.rb
cellect-server-0.0.8 spec/support/cellect_helper.rb
cellect-client-0.0.7 spec/support/cellect_helper.rb
cellect-server-0.0.7 spec/support/cellect_helper.rb
cellect-client-0.0.6 spec/support/cellect_helper.rb
cellect-server-0.0.6 spec/support/cellect_helper.rb
cellect-client-0.0.5 spec/support/cellect_helper.rb
cellect-server-0.0.5 spec/support/cellect_helper.rb
cellect-client-0.0.4 spec/support/cellect_helper.rb
cellect-server-0.0.4 spec/support/cellect_helper.rb
cellect-client-0.0.3 spec/support/cellect_helper.rb
cellect-server-0.0.3 spec/support/cellect_helper.rb
cellect-client-0.0.2 spec/support/cellect_helper.rb
cellect-server-0.0.2 spec/support/cellect_helper.rb
cellect-client-0.0.1 spec/support/cellect_helper.rb
cellect-server-0.0.1 spec/support/cellect_helper.rb