Fixed test for Ruby 1.9

This commit is contained in:
Jim Menard 2009-01-09 14:44:29 -05:00
parent 926a3ad3b9
commit 53fcc027f6

View File

@ -110,7 +110,7 @@ class RoundTripTest < Test::Unit::TestCase
# Read the BSON from the file
bson = f.read
bson = if RUBY_VERSION >= '1.9'
bson.bytes
bson.bytes.to_a
else
bson.split(//).collect { |c| c[0] }
end