Class: RSpec::Wait::Proxy
- Inherits:
-
Object
- Object
- RSpec::Wait::Proxy
- Defined in:
- lib/rspec/wait/proxy.rb
Overview
The RSpec::Wait::Proxy class is capable of creating a small container object for RSpec::Wait options, returned by the top-level wait method, which allows chaining wait and for methods for more expectations that read more naturally, like:
wait(3.seconds).for { this }.to eq(that)
Instance Method Summary collapse
- #for(*args, &block) ⇒ Object
-
#initialize(**options) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(**options) ⇒ Proxy
Returns a new instance of Proxy.
13 14 15 |
# File 'lib/rspec/wait/proxy.rb', line 13 def initialize(**) @options = end |