Sha256: e72f92033fbeff5f6016b688066eea6ed6362cba5559f195b6c38b4abdc4e923
Contents?: true
Size: 380 Bytes
Versions: 3
Compression:
Stored size: 380 Bytes
Contents
class FakeConnection attr_reader :written def initialize @written = [] end def peek(*args) "peek_data" end def read(*args) { 'status' => [ 200 ], 'data' => {} } end def write(request_hash) @written << request_hash end def close_write @write_stream_closed = true end def write_stream_closed? !!@write_stream_closed end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
and-son-0.6.1 | test/support/fake_connection.rb |
and-son-0.6.0 | test/support/fake_connection.rb |
and-son-0.5.0 | test/support/fake_connection.rb |