Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Sep 2, 2024
1 parent c877f74 commit adce384
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/protocol/rack/body/streaming.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,18 @@
expect(stream.string).to be == "HelloWorld"
end
end

with "nested fiber" do
let(:block) do
proc do |stream|
Fiber.new do
stream.write("Hello")
end.resume
end
end

it "can read a chunk" do
expect(body.read).to be == "Hello"
end
end
end

0 comments on commit adce384

Please sign in to comment.