Module: Rspec::Eventually

Defined in:
lib/rspec/eventually.rb,
lib/rspec/eventually/version.rb

Defined Under Namespace

Classes: Eventually, FailedMatcherError

Constant Summary collapse

VERSION =
'0.2.2'.freeze

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.pauseObject

Returns the value of attribute pause.



8
9
10
# File 'lib/rspec/eventually.rb', line 8

def pause
  @pause
end

.timeoutObject

Returns the value of attribute timeout.



8
9
10
# File 'lib/rspec/eventually.rb', line 8

def timeout
  @timeout
end

Instance Method Details

#eventually(target, custom_msg = nil) ⇒ Object



80
81
82
# File 'lib/rspec/eventually.rb', line 80

def eventually(target, custom_msg = nil)
  Eventually.new(target, custom_msg)
end

#eventually_not(target, custom_msg = nil) ⇒ Object



84
85
86
# File 'lib/rspec/eventually.rb', line 84

def eventually_not(target, custom_msg = nil)
  Eventually.new(target, custom_msg).not
end