File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ def body.call; raise 'yielded' end
333
333
response . write_body ( response_environment )
334
334
end
335
335
336
- it "writes a (Temfile ) stream using a channel" do
336
+ it "writes a (Tempfile ) stream using a channel" do
337
337
body = ( require 'tempfile' ; Tempfile . new 'to_channel_spec' )
338
338
body << "1234567890" ; body << "\n " ; body << '1234567890' ; body . rewind
339
339
def body . each ; raise "each not-expected" ; end
@@ -357,7 +357,7 @@ def body.each_line; raise "each_line not-expected"; end
357
357
358
358
response . write_body ( response_environment )
359
359
expect ( stream . to_s ) . to eql "1234567890\n 1234567890"
360
- expect { body . close } . to raise_error IOError , /closed/
360
+ expect { body . to_channel } . not_to raise_error
361
361
end
362
362
363
363
it "streams a file using a channel if wrapped in body_parts" ,
You can’t perform that action at this time.
0 commit comments