Skip to content

Commit

Permalink
Validate partial output.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Sep 5, 2024
1 parent 6dc13ce commit 4e462fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/protocol/http/body/streamable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
with "a block that raises an error" do
let(:block) do
proc do |stream|
stream.write("Hello")

raise "Oh no... a wild error appeared!"
end
end
Expand All @@ -97,6 +99,8 @@
expect do
body.call(stream)
end.to raise_exception(RuntimeError, message: be =~ /Oh no... a wild error appeared!/)

expect(stream.string).to be == "Hello"
end
end
end
Expand Down

0 comments on commit 4e462fb

Please sign in to comment.