Sha256: 4b0126f316c070754d2ed6449d23b98339cb75918dd6bf2c8d35848f0c1c4b4f
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
require_relative "../../share/cleans_backtrace" require_relative "../../share/bind" module Mocktail class DescribesUnsatisfiedStubbing extend T::Sig def initialize @cleans_backtrace = CleansBacktrace.new end def describe(dry_call) UnsatisfyingCall.new( call: dry_call, other_stubbings: Mocktail.cabinet.stubbings.select { |stubbing| Bind.call(dry_call.double, :==, stubbing.recording.double) && dry_call.method == stubbing.recording.method }, backtrace: @cleans_backtrace.clean(Error.new).backtrace || [] ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mocktail-2.0.0 | lib/mocktail/handles_dry_call/fulfills_stubbing/describes_unsatisfied_stubbing.rb |