Module: Soaspec::ExchangeRepeater
- Included in:
- Exchange
- Defined in:
- lib/soaspec/exchange/exchange_repeater.rb
Overview
Ways of repeating an exchange to reach a desired outcome
Instance Method Summary collapse
-
#until(opts = {}, &script) ⇒ Exchange
Wait until the passed block returns true.
Instance Method Details
#until(opts = {}, &script) ⇒ Exchange
Wait until the passed block returns true
13 14 15 16 17 18 19 |
# File 'lib/soaspec/exchange/exchange_repeater.rb', line 13 def until(opts = {}, &script) Soaspec::Wait.until(opts) do @response = nil # Reset response so it can be made repeatedly instance_eval(&script) end self end |