spec/io_spec.rb in bindata-0.11.1 vs spec/io_spec.rb in bindata-1.0.0
- old
+ new
@@ -170,10 +170,10 @@
end
end
class BitWriterHelper
def initialize
- @stringio = StringIO.new
+ @stringio = BinData::IO.create_string_io
@io = BinData::IO.new(@stringio)
end
def writebits(val, nbits, endian)
@io.writebits(val, nbits, endian)