File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def normalize_path(path)
123
123
def load_mime_types ( file )
124
124
# note: +file+ may be a "| command" for now; some people may
125
125
# rely on this, but currently we do not use this method by default.
126
- open ( file ) { |io |
126
+ File . open ( file ) { |io |
127
127
hash = Hash . new
128
128
io . each { |line |
129
129
next if /^#/ =~ line
Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ def test_make_partial_content
85
85
"Content-Type: text/plain\r \n " \
86
86
"Content-Range: bytes 0-0/#{ filesize } \r \n " \
87
87
"\r \n " \
88
- "#{ IO . read ( __FILE__ , 1 ) } \r \n " \
88
+ "#{ File . read ( __FILE__ , 1 ) } \r \n " \
89
89
"--#{ boundary } \r \n " \
90
90
"Content-Type: text/plain\r \n " \
91
91
"Content-Range: bytes #{ off } -#{ last } /#{ filesize } \r \n " \
92
92
"\r \n " \
93
- "#{ IO . read ( __FILE__ , 2 , off ) } \r \n " \
93
+ "#{ File . read ( __FILE__ , 2 , off ) } \r \n " \
94
94
"--#{ boundary } --\r \n "
95
95
assert_equal exp , body
96
96
end
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ def test_chunked
245
245
246
246
_end_of_message_
247
247
msg . gsub! ( /^ {6}/ , "" )
248
- open ( __FILE__ ) { |io |
248
+ File . open ( __FILE__ ) { |io |
249
249
while chunk = io . read ( 100 )
250
250
msg << chunk . size . to_s ( 16 ) << crlf
251
251
msg << chunk << crlf
You can’t perform that action at this time.
0 commit comments