test/virtual_test.rb in bindata-2.1.0 vs test/virtual_test.rb in bindata-2.2.0

- old
+ new

@@ -1,8 +1,8 @@ #!/usr/bin/env ruby -require File.expand_path(File.join(File.dirname(__FILE__), "common")) +require File.expand_path(File.join(File.dirname(__FILE__), "test_helper")) describe BinData::Virtual do let(:stream) { StringIO.new "abcdefghij" } it "must not read from any stream" do @@ -10,10 +10,10 @@ stream.pos.must_equal 0 end it "must not write to a stream" do obj = BinData::Virtual.new - obj.to_binary_s.must_equal "" + obj.to_binary_s.must_equal_binary "" end it "occupies no space" do obj = BinData::Virtual.new obj.num_bytes.must_equal 0