spec/io_spec.rb in bindata-1.1.0 vs spec/io_spec.rb in bindata-1.2.0
- old
+ new
@@ -104,21 +104,19 @@
it "should write" do
stream = StringIO.new
io = BinData::IO.new(stream)
io.writebytes("abcd")
- stream.rewind
- stream.read.should == "abcd"
+ stream.value.should == "abcd"
end
it "should flush" do
stream = StringIO.new
io = BinData::IO.new(stream)
io.writebytes("abcd")
io.flush
- stream.rewind
- stream.read.should == "abcd"
+ stream.value.should == "abcd"
end
end
describe BinData::IO, "reading bits in big endian" do