Fixed test for Ruby 1.9
This commit is contained in:
parent
926a3ad3b9
commit
53fcc027f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user