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

Version Path
timezone-1.3.27 test/http_test_client.rb
timezone-1.3.26 test/http_test_client.rb
timezone-1.3.25 test/http_test_client.rb
timezone-1.3.24 test/http_test_client.rb
timezone-1.3.23 test/http_test_client.rb
timezone-1.3.22 test/http_test_client.rb
timezone-1.3.21 test/http_test_client.rb
timezone-1.3.20 test/http_test_client.rb
timezone-1.3.19 test/http_test_client.rb
timezone-1.3.18 test/http_test_client.rb
timezone-1.3.17 test/http_test_client.rb
timezone-1.3.16 test/http_test_client.rb
timezone-1.3.15 test/http_test_client.rb
timezone-1.3.14 test/http_test_client.rb
timezone-1.3.13 test/http_test_client.rb
timezone-1.3.12 test/http_test_client.rb
timezone-1.3.11 test/http_test_client.rb
timezone-1.3.10 test/http_test_client.rb
timezone-1.3.9 test/http_test_client.rb
timezone-1.3.8 test/http_test_client.rb