Sha256: ed5c151d9163a9e424c18cf05a32c89f7b28e334d2fdaabf4ae6cc063fbe01ed

Contents?: true

Size: 234 Bytes

Versions: 5

Compression:

Stored size: 234 Bytes

Contents

module WaitUntil
  def wait_until(attempts=10)
    (0..attempts).each do |a|
      break if yield rescue nil
      
      sleep a
    end
  end
end

RSpec.configure do |config|
  config.include WaitUntil
  config.extend WaitUntil
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
riak-client-2.2.0.pre1 spec/support/wait_until.rb
riak-client-2.1.0 spec/support/wait_until.rb
riak-client-2.0.0 spec/support/wait_until.rb
riak-client-2.0.0.rc2 spec/support/wait_until.rb
riak-client-2.0.0.rc1 spec/support/wait_until.rb