File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ def concatenate(paths)
244244
245245 # `File.read`, but in "binary" mode.
246246 def read_binary_file ( path )
247- File . open ( path , 'r:binary ' ) { |f | f . read }
247+ File . open ( path , 'rb ' ) { |f | f . read }
248248 end
249249 end
250250
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def test_loading_a_nonexistent_java
2929 packed = @compressor . compile_jst ( glob ( 'test/fixtures/src/*.jst' ) )
3030 assert packed == File . read ( 'test/fixtures/jammed/jst_test.js' )
3131 packed = @compressor . compress_css ( glob ( 'test/fixtures/src/*.css' ) )
32- assert packed == File . open ( 'test/fixtures/jammed/css_test-uncompressed.css' , 'r:binary ' ) { |f | f . read }
32+ assert packed == File . open ( 'test/fixtures/jammed/css_test-uncompressed.css' , 'rb ' ) { |f | f . read }
3333 end
3434
3535 def test_disabled_compression
@@ -44,7 +44,7 @@ def test_disabled_compression
4444 packed = @compressor . compile_jst ( glob ( 'test/fixtures/src/*.jst' ) )
4545 assert packed == File . read ( 'test/fixtures/jammed/jst_test.js' )
4646 packed = @compressor . compress_css ( glob ( 'test/fixtures/src/*.css' ) )
47- assert packed == File . open ( 'test/fixtures/jammed/css_test-uncompressed.css' , 'r:binary ' ) { |f | f . read }
47+ assert packed == File . open ( 'test/fixtures/jammed/css_test-uncompressed.css' , 'rb ' ) { |f | f . read }
4848 end
4949
5050 def test_css_compression
You can’t perform that action at this time.
0 commit comments