Sha256: b7c2ce0f0d17c777461c250fd77212ae17433fce2d9b494be6a4d5c42ac6e8e8

Contents?: true

Size: 374 Bytes

Versions: 15

Compression:

Stored size: 374 Bytes

Contents

require_relative "../share/determines_matching_calls"

module Mocktail
  class FindsVerifiableCalls
    def initialize
      @determines_matching_calls = DeterminesMatchingCalls.new
    end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mocktail-1.2.3 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-1.2.2 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-1.2.1 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-1.2.0 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-1.1.3 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-1.1.2 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-1.1.1 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-1.1.0 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-1.0.0 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-0.0.6 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-0.0.5 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-0.0.4 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-0.0.3 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-0.0.2 lib/mocktail/verifies_call/finds_verifiable_calls.rb
mocktail-0.0.1 lib/mocktail/verifies_call/finds_verifiable_calls.rb