Class: Mocktail::DeterminesMatchingCalls
- Inherits:
-
Object
- Object
- Mocktail::DeterminesMatchingCalls
- Extended by:
- T::Sig
- Defined in:
- lib/mocktail/share/determines_matching_calls.rb,
lib/mocktail/sorbet/mocktail/share/determines_matching_calls.rb
Instance Method Summary collapse
Instance Method Details
#determine(real_call, demo_call, demo_config) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/mocktail/share/determines_matching_calls.rb', line 7 def determine(real_call, demo_call, demo_config) Bind.call(real_call.double, :==, demo_call.double) && real_call.method == demo_call.method && # Matcher implementation will replace this: args_match?(real_call.args, demo_call.args, demo_config.ignore_extra_args) && kwargs_match?(real_call.kwargs, demo_call.kwargs, demo_config.ignore_extra_args) && blocks_match?(real_call.block, demo_call.block, demo_config.ignore_block) end |