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

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.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



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