Class: RSpec::Mocks::MessageExpectation
- Inherits:
-
Object
- Object
- RSpec::Mocks::MessageExpectation
- Defined in:
- lib/rspec/message/within.rb
Instance Method Summary collapse
Instance Method Details
#orig_verify_messages_received ⇒ Object
21 |
# File 'lib/rspec/message/within.rb', line 21 alias_method :orig_verify_messages_received, :verify_messages_received |
#verify_messages_received ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/rspec/message/within.rb', line 22 def MessageWithin.until(@within_time || 0) do and !negative? end end |
#within(time) ⇒ Object
30 31 32 33 |
# File 'lib/rspec/message/within.rb', line 30 def within(time) @within_time = time self end |