Sha256: 117a34a8de378de1d7752b598ba1f465dc90ae83b63c59edfdd08b393c5f0a6f
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 Bytes
Contents
require_relative "handles_dry_call/fulfills_stubbing" require_relative "handles_dry_call/logs_call" require_relative "handles_dry_call/validates_arguments" module Mocktail class HandlesDryCall extend T::Sig def initialize @validates_arguments = ValidatesArguments.new @logs_call = LogsCall.new @fulfills_stubbing = FulfillsStubbing.new end def handle(dry_call) @validates_arguments.validate(dry_call) @logs_call.log(dry_call) @fulfills_stubbing.fulfill(dry_call) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mocktail-2.0.0 | lib/mocktail/handles_dry_call.rb |