Sha256: 719d8bbabab72da40f480208511021482a3652837a458c17a2fb95123eac4a6b

Contents?: true

Size: 158 Bytes

Versions: 2

Compression:

Stored size: 158 Bytes

Contents

class IOMock
  def initialize
    @counter = 0
  end
  def gets
    return nil if @counter > 0
    @counter += 1
    "\xA9".force_encoding("utf-8")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stowaway-0.2.5 spec/lib/io_mock.rb
stowaway-0.2.2 spec/lib/io_mock.rb