Skip to content

Commit e4a4eee

Browse files
committed
Adjust test expectations to match current JRuby behaviour
Signed-off-by: Chad Wilson <[email protected]>
1 parent 15edd63 commit e4a4eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spec/ruby/jruby/rack/response_spec.rb

+2-2
Original file line numberDiff line numberDiff 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\n1234567890"
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",

0 commit comments

Comments
 (0)