Class: Mocktail::FindsVerifiableCalls

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/mocktail/verifies_call/finds_verifiable_calls.rb,
lib/mocktail/sorbet/mocktail/verifies_call/finds_verifiable_calls.rb

Instance Method Summary collapse

Constructor Details

#initializeFindsVerifiableCalls

Returns a new instance of FindsVerifiableCalls.



7
8
9
# File 'lib/mocktail/verifies_call/finds_verifiable_calls.rb', line 7

def initialize
  @determines_matching_calls = DeterminesMatchingCalls.new
end

Instance Method Details

#find(recording, demo_config) ⇒ Object



11
12
13
14
15
# File 'lib/mocktail/verifies_call/finds_verifiable_calls.rb', line 11

def find(recording, demo_config)
  Mocktail.cabinet.calls.select { |call|
    @determines_matching_calls.determine(call, recording, demo_config)
  }
end