minor: test fixes

This commit is contained in:
Kyle Banker 2010-02-25 16:40:48 -05:00
parent 824573f297
commit fb3ed36188

View File

@ -130,7 +130,6 @@ class GridStoreTest < Test::Unit::TestCase
}
assert_equal 3, @@chunks.count
#assert_equal ('x' * size) + ('y' * size) + ('z' * size), GridStore.read(@@db, 'biggie')
end
def test_binary
@ -140,8 +139,12 @@ class GridStoreTest < Test::Unit::TestCase
end
file.rewind
data = file.read
if data.respond_to?(:force_encoding)
data.force_encoding(:binary)
end
GridStore.open(@@db, 'zip', 'r') do |f|
assert_equal file.read.length, f.read.length
assert_equal data.length, f.read.length
end
end