Sha256: 295190270cad3e718e3f1df58d03e20871d68991f1ad0c40fea9c7f76cd48073

Contents?: true

Size: 519 Bytes

Versions: 15

Compression:

Stored size: 519 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
    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

15 entries across 15 versions & 1 rubygems

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