File tree 4 files changed +22
-2
lines changed
4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 44
44
expect ( decompressed_body . read ) . to be == nil
45
45
end
46
46
47
+ with "#length" do
48
+ it "should be unknown" do
49
+ expect ( compressed_body ) . to have_attributes (
50
+ length : be_nil ,
51
+ )
52
+
53
+ expect ( decompressed_body ) . to have_attributes (
54
+ length : be_nil ,
55
+ )
56
+ end
57
+ end
58
+
47
59
with "#inspect" do
48
60
it "can generate string representation" do
49
61
expect ( compressed_body . inspect ) . to be == "#<Protocol::HTTP::Body::Buffered 0 chunks, 0 bytes> | #<Protocol::HTTP::Body::Deflate 100.0%>"
Original file line number Diff line number Diff line change 17
17
expect ( body ) . not . to be ( :ready? )
18
18
end
19
19
20
+ with "#buffered" do
21
+ it "is unable to buffer by default" do
22
+ expect ( body . buffered ) . to be_nil
23
+ end
24
+ end
25
+
20
26
with "#finish" do
21
27
it "should return empty buffered representation" do
22
28
expect ( body . finish ) . to be ( :empty? )
Original file line number Diff line number Diff line change 74
74
version : be == "HTTP/1.0" ,
75
75
headers : be == headers ,
76
76
body : be == body ,
77
- protocol : be_nil
77
+ protocol : be_nil ,
78
+ peer : be_nil ,
78
79
)
79
80
end
80
81
Original file line number Diff line number Diff line change 172
172
status : be == 200 ,
173
173
headers : be == headers ,
174
174
body : be == body ,
175
- protocol : be == nil
175
+ protocol : be_nil ,
176
+ peer : be_nil ,
176
177
)
177
178
end
178
179
You can’t perform that action at this time.
0 commit comments