Skip to content

Commit

Permalink
minor: fix test file for windows - open file in binary mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed Jul 16, 2009
1 parent 73d7b5e commit dbd6565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_round_trip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def one_round_trip(dir, name)
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'
Expand Down

0 comments on commit dbd6565

Please sign in to comment.