Module: Spreewald::WithoutWaiting

Included in:
FieldErrorFinder
Defined in:
lib/spreewald_support/without_waiting.rb

Instance Method Summary collapse

Instance Method Details

#without_waitingObject



5
6
7
8
9
10
11
# File 'lib/spreewald_support/without_waiting.rb', line 5

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