Sha256: 0759695f703d1d3440ddd78e48cec763774c6b6ae18050f999d22ec185c9a4d1

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

require "rspec"

require "rspec/wait/error"
require "rspec/wait/handler"
require "rspec/wait/target"

module RSpec
  module Wait
    # From: https://github.com/rspec/rspec-expectations/blob/v3.0.0/lib/rspec/expectations/syntax.rb#L72-L74
    def wait_for(value = Target::UndefinedValue, &block)
      Target.for(value, block)
    end
  end
end

RSpec.configure do |config|
  config.include(RSpec::Wait)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-wait-0.0.3 lib/rspec/wait.rb
rspec-wait-0.0.2 lib/rspec/wait.rb