Skip to content

Commit a58592b

Browse files
committed
Clean up tests.
1 parent 0177624 commit a58592b

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

test/protocol/rack/body/enumerable.rb

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
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
@@ -94,20 +94,5 @@
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
11398
end

0 commit comments

Comments
 (0)