Skip to content

Commit

Permalink
Add test for buffered? to check SSLSocket correctness.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 2, 2024
1 parent ef7c3d6 commit 5acc33a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/io/stream/buffered.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
expect(client.read(13)).to be == "Hello, World!"
end

with "#buffered?" do
it "should not be buffered" do
expect(client.io).not.to be(:buffered?)
end
end

with "#read" do
it "can read zero length" do
data = client.read(0)
Expand Down

0 comments on commit 5acc33a

Please sign in to comment.