Sha256: 0608c11a05bdbef94333fdfb105873bc8791592bd592876b9006319896cc6faf

Contents?: true

Size: 224 Bytes

Versions: 15

Compression:

Stored size: 224 Bytes

Contents

module Mocktail
  class GathersCallsOfMethod
    def gather(dry_call)
      Mocktail.cabinet.calls.select { |call|
        call.double == dry_call.double &&
          call.method == dry_call.method
      }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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