Sha256: 810d6387087f26c8660a212f99d9920ca9b86325c1d83e79ace77f616dbb4649
Contents?: true
Size: 400 Bytes
Versions: 32
Compression:
Stored size: 400 Bytes
Contents
# frozen_string_literal: true class HTTPTestClient Response = Struct.new(:body) do def code; '200'; end end attr_accessor :body def initialize(_config); end def get(_url) HTTPTestClient::Response.new(body) end end class HTTPTestClientFactory def initialize(body) @body = body end def new(config) HTTPTestClient.new(config).tap { |c| c.body = @body } end end
Version data entries
32 entries across 32 versions & 1 rubygems