From dbd656580d81e745949dd5ce438f84fc063aaa7a Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Thu, 16 Jul 2009 11:52:34 -0400 Subject: [PATCH] minor: fix test file for windows - open file in binary mode --- 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 91bf9cb..a25345a 100644 --- a/tests/test_round_trip.rb +++ b/tests/test_round_trip.rb @@ -67,7 +67,7 @@ EOS XMLToRuby.new.xml_to_ruby(f) } - File.open(File.join(dir, "#{name}.bson"), 'r') { |f| + File.open(File.join(dir, "#{name}.bson"), 'rb') { |f| # Read the BSON from the file bson = f.read bson = if RUBY_VERSION >= '1.9'