Class: Spec::Mocks::NegativeMessageExpectation
- Inherits:
-
MessageExpectation
- Object
- BaseExpectation
- MessageExpectation
- Spec::Mocks::NegativeMessageExpectation
- Defined in:
- lib/spec/mocks/message_expectation.rb
Instance Attribute Summary
Attributes inherited from BaseExpectation
Instance Method Summary collapse
-
#initialize(message, expectation_ordering, expected_from, sym, method_block) ⇒ NegativeMessageExpectation
constructor
A new instance of NegativeMessageExpectation.
- #negative_expectation_for?(sym) ⇒ Boolean
Methods inherited from MessageExpectation
#any_number_of_times, #at_least, #at_most, #exactly, #matches_name_but_not_args, #never, #once, #ordered, #times, #twice, #verify_messages_received, #with
Methods inherited from BaseExpectation
#and_raise, #and_return, #and_throw, #and_yield, #expected_args, #invoke, #matches
Constructor Details
#initialize(message, expectation_ordering, expected_from, sym, method_block) ⇒ NegativeMessageExpectation
Returns a new instance of NegativeMessageExpectation.
226 227 228 |
# File 'lib/spec/mocks/message_expectation.rb', line 226 def initialize(, expectation_ordering, expected_from, sym, method_block) super(, expectation_ordering, expected_from, sym, method_block, 0) end |
Instance Method Details
#negative_expectation_for?(sym) ⇒ Boolean
230 231 232 |
# File 'lib/spec/mocks/message_expectation.rb', line 230 def negative_expectation_for?(sym) return @sym == sym end |