Sha256: 2cec34183681ae3a48d0a8a9293370f6d6d3435f417290f4b7a69b192de12392

Contents?: true

Size: 332 Bytes

Versions: 4

Compression:

Stored size: 332 Bytes

Contents

require 'spreewald_support/capybara_wrapper'

module Spreewald
  module WithoutWaiting
    def without_waiting
      prior_max_wait_time = CapybaraWrapper.default_max_wait_time
      CapybaraWrapper.default_max_wait_time = 0
      yield
    ensure
      CapybaraWrapper.default_max_wait_time = prior_max_wait_time
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spreewald-4.6.3 lib/spreewald_support/without_waiting.rb
spreewald-4.6.2 lib/spreewald_support/without_waiting.rb
spreewald-4.6.1 lib/spreewald_support/without_waiting.rb
spreewald-4.6.0 lib/spreewald_support/without_waiting.rb