summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2022-01-20 17:37:44 -0800
committerGitHub <noreply@github.com>2022-01-20 17:37:44 -0800
commit1760292adeb6900c54270dfdd9490d1592a318fd (patch)
treeba702679001631de6279fe2e2c5f1dda7dea7bb2 /test
parentdbec6b653b835efe24028744f1651efa0f6ebd5e (diff)
parenteef251d3758741fec514356c117ff791a4c23347 (diff)
downloadrack-1760292adeb6900c54270dfdd9490d1592a318fd.tar.gz
Merge pull request #1745 from ioquatix/streamingmaster
Support callable body for explicit streaming support.
Diffstat (limited to 'test')
-rwxr-xr-xtest/spec_lint.rb4
-rw-r--r--test/test_request.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/spec_lint.rb b/test/spec_lint.rb
index 06003a9a..4bc28c64 100755
--- a/test/spec_lint.rb
+++ b/test/spec_lint.rb
@@ -721,10 +721,10 @@ describe Rack::Lint do
end
-describe "Rack::Lint::InputWrapper" do
+describe "Rack::Lint::Wrapper::InputWrapper" do
it "delegate :rewind to underlying IO object" do
io = StringIO.new("123")
- wrapper = Rack::Lint::InputWrapper.new(io)
+ wrapper = Rack::Lint::Wrapper::InputWrapper.new(io)
wrapper.read.must_equal "123"
wrapper.read.must_equal ""
wrapper.rewind
diff --git a/test/test_request.rb b/test/test_request.rb
index 481a4e54..ae995c53 100644
--- a/test/test_request.rb
+++ b/test/test_request.rb
@@ -5,7 +5,7 @@ require 'net/http'
require 'rack/lint'
class TestRequest
- NOSERIALIZE = [Method, Proc, Rack::Lint::InputWrapper]
+ NOSERIALIZE = [Method, Proc, Rack::Lint::Wrapper::InputWrapper]
def call(env)
status = env["QUERY_STRING"] =~ /secret/ ? 403 : 200