Browse files

force binmode for test fixtures

  • Loading branch information...
1 parent f7a0609 commit e302b86dae09c2ac1afcbd803c81967a17ed4c0e @sirlantis committed Jul 29, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/helper.rb
View
4 test/helper.rb
@@ -70,7 +70,9 @@ def rewind_files
end
def open_file(name)
- File.open(File.join(File.dirname(__FILE__), 'fixtures', name), 'r')
+ f = File.open(File.join(File.dirname(__FILE__), 'fixtures', name), 'r')
+ f.binmode
+ f
end
def grid

0 comments on commit e302b86

Please sign in to comment.