Skip to content

Commit bd69e57

Browse files
authored
Cover stream empty without output. (#122)
1 parent 44a1a27 commit bd69e57

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎test/protocol/http/body/stream.rb‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
it "should be empty" do
2828
expect(stream).to be(:empty?)
2929
end
30+
31+
with "no output" do
32+
let(:output) {nil}
33+
34+
it "should be empty" do
35+
expect(stream).to be(:empty?)
36+
end
37+
end
3038
end
3139

3240
with "#read" do

0 commit comments

Comments
 (0)