File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 7878 end
7979 end
8080
81- with ".wrap with Rack::BodyProxy" , if : defined? ( Rack :: BodyProxy ) do
82- it "calls close on the body proxy" do
81+ with ".wrap" do
82+ it "calls close on body proxy" do
8383 closed = false
8484 rack_body = Rack ::BodyProxy . new ( [ "Hello" , "World" ] ) do
8585 closed = true
9494 # The close callback should have been called
9595 expect ( closed ) . to be == true
9696 end
97-
98- it "calls close even when reading the body" do
99- closed = false
100- rack_body = Rack ::BodyProxy . new ( [ "Hello" , "World" ] ) do
101- closed = true
102- end
103-
104- wrapped = subject . wrap ( rack_body )
105-
106- # Read all chunks
107- wrapped . join
108-
109- # The close callback should have been called
110- expect ( closed ) . to be == true
111- end
11297 end
11398end
You can’t perform that action at this time.
0 commit comments