Class: RSpec::Mocks::AnyInstance::ExpectationChain

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/message/within.rb

Instance Method Summary collapse

Instance Method Details

#expectation_fulfilled?Boolean

Returns:

  • (Boolean)


53
54
55
56
57
58
59
# File 'lib/rspec/message/within.rb', line 53

def expectation_fulfilled?
  RSpec::MessageWithin.until(@within_time || 0) do
    orig_expectation_fulfilled?
  end

  orig_expectation_fulfilled?
end

#orig_expectation_fulfilled?Object



51
# File 'lib/rspec/message/within.rb', line 51

alias_method :orig_expectation_fulfilled?, :expectation_fulfilled?

#within(time) ⇒ Object



61
62
63
64
# File 'lib/rspec/message/within.rb', line 61

def within(time)
  @within_time = time
  self
end