We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c566eb7 commit 8fd3ef1Copy full SHA for 8fd3ef1
test/webrick/test_httpresponse.rb
@@ -272,7 +272,7 @@ def test_send_body_proc_upgrade
272
IO.pipe do |r, w|
273
@res.send_response(w)
274
w.close
275
- assert_match /Connection: upgrade\r\nUpgrade: text\r\n\r\nhello/, r.read
+ assert_match(/Connection: upgrade\r\nUpgrade: text\r\n\r\nhello/, r.read)
276
end
277
assert_empty logger.messages
278
@@ -292,7 +292,7 @@ def test_send_body_proc_stream
292
s2.write("hello")
293
s2.close_write
294
chunk = s2.read
295
- assert_match /Connection: close\r\n\r\nhello/, chunk
+ assert_match(/Connection: close\r\n\r\nhello/, chunk)
296
s2.close
297
298
thread.join
0 commit comments