minor: fix test file for windows - open file in binary mode

This commit is contained in:
Mike Dirolf 2009-07-16 11:52:34 -04:00
parent 73d7b5ea5d
commit dbd656580d
1 changed files with 1 additions and 1 deletions

View File

@ -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'