8000 100% coverage for Client. · PeterRunich/async-websocket@fb81e83 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb81e83

Browse files
committed
100% coverage for Client.
1 parent ebbd887 commit fb81e83

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/async/websocket/server.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
end
3434
end
3535

36+
it "can open client and establish client with block" do
37+
Async::WebSocket::Client.open(client_endpoint) do |client|
38+
client.connect(endpoint.authority, "/server") do |connection|
39+
connection.send_text("Hello World!")
40+
message = connection.read
41+
expect(message.to_str).to be == "Hello World!"
42+
end
43+
end
44+
end
45+
3646
with "headers" do
3747
let(:headers) {{"foo" => "bar"}}
3848

0 commit comments

Comments
 (0)
0