From 53fcc027f61b3b9e454b68aef4865e53a9ebd1f3 Mon Sep 17 00:00:00 2001 From: Jim Menard Date: Fri, 9 Jan 2009 14:44:29 -0500 Subject: [PATCH] Fixed test for Ruby 1.9 --- tests/test_round_trip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_round_trip.rb b/tests/test_round_trip.rb index 0670222..5018afc 100644 --- a/tests/test_round_trip.rb +++ b/tests/test_round_trip.rb @@ -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