Class: Facon::NegativeExpectation
- Inherits:
-
Expectation
- Object
- Expectation
- Facon::NegativeExpectation
- Defined in:
- lib/motion-facon/expectation.rb
Instance Attribute Summary
Attributes inherited from Expectation
#actual_received_count, #argument_expectation, #error_generator, #expectation_ordering, #expected_from, #expected_received_count, #method, #method_block
Instance Method Summary collapse
-
#initialize(error_generator, expectation_ordering, expected_from, method, method_block, expected_received_count = 0) ⇒ NegativeExpectation
constructor
A new instance of NegativeExpectation.
- #negative_expectation_for?(method) ⇒ Boolean
Methods inherited from Expectation
#and_raise, #and_return, #and_throw, #and_yield, #invoke, #matches, #matches_name_but_not_args, #met?, #never, #once, #raise_block_failed_error, #raise_expectation_error, #times, #with
Constructor Details
#initialize(error_generator, expectation_ordering, expected_from, method, method_block, expected_received_count = 0) ⇒ NegativeExpectation
Returns a new instance of NegativeExpectation.
135 136 137 |
# File 'lib/motion-facon/expectation.rb', line 135 def initialize(error_generator, expectation_ordering, expected_from, method, method_block, expected_received_count = 0) super(error_generator, expectation_ordering, expected_from, method, method_block, expected_received_count) end |
Instance Method Details
#negative_expectation_for?(method) ⇒ Boolean
139 140 141 |
# File 'lib/motion-facon/expectation.rb', line 139 def negative_expectation_for?(method) @method == method end |