Sha256: 4c8aa84d095b0159507dc2c156032d7060769a19fa08ea0e599c2bddcabd8939
Contents?: true
Size: 370 Bytes
Versions: 4
Compression:
Stored size: 370 Bytes
Contents
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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
timezone-1.2.8 | test/http_test_client.rb |
timezone-1.2.7 | test/http_test_client.rb |
timezone-1.2.6 | test/http_test_client.rb |
timezone-1.2.5 | test/http_test_client.rb |