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.0'

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.pauseObject

Returns the value of attribute pause.



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

def pause
  @pause
end

.timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end

Instance Method Details

#eventually(target, custom_msg = nil) ⇒ Object



91
92
93
# File 'lib/rspec/eventually.rb', line 91

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

#eventually_not(target, custom_msg = nil) ⇒ Object



95
96
97
# File 'lib/rspec/eventually.rb', line 95

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