File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 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
333333 response . write_body ( response_environment )
334334 end
335335
336- it "writes a (Temfile ) stream using a channel" do
336+ it "writes a (Tempfile ) stream using a channel" do
337337 body = ( require 'tempfile' ; Tempfile . new 'to_channel_spec' )
338338 body << "1234567890" ; body << "\n " ; body << '1234567890' ; body . rewind
339339 def body . each ; raise "each not-expected" ; end
@@ -357,7 +357,7 @@ def body.each_line; raise "each_line not-expected"; end
357357
358358 response . write_body ( response_environment )
359359 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
361361 end
362362
363363 it "streams a file using a channel if wrapped in body_parts" ,
You can’t perform that action at this time.
0 commit comments