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 0177624 commit a58592bCopy full SHA for a58592b
1 file changed
test/protocol/rack/body/enumerable.rb
@@ -78,8 +78,8 @@
78
end
79
80
81
- with ".wrap with Rack::BodyProxy", if: defined?(Rack::BodyProxy) do
82
- it "calls close on the body proxy" do
+ with ".wrap" do
+ it "calls close on body proxy" do
83
closed = false
84
rack_body = Rack::BodyProxy.new(["Hello", "World"]) do
85
closed = true
@@ -94,20 +94,5 @@
94
# The close callback should have been called
95
expect(closed).to be == true
96
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
112
113
0 commit comments