summaryrefslogtreecommitdiff
path: root/spec/irc_spec.cr
diff options
context:
space:
mode:
authorDaniel Worrall <Daniel.Worrall@hotmail.co.uk>2019-05-22 00:31:25 +0100
committerDaniel Worrall <Daniel.Worrall@hotmail.co.uk>2019-05-22 00:31:25 +0100
commit3132621245630ac2ae345d331bb742ddeb88bfa2 (patch)
tree17445ab848274ad2248bf556d8060fb8cb494e06 /spec/irc_spec.cr
parent873780d9374f5e5e31e66ab86fb021aafab9608d (diff)
downloadtwitch-3132621245630ac2ae345d331bb742ddeb88bfa2.tar.gz
twitch-3132621245630ac2ae345d331bb742ddeb88bfa2.zip
Add IRC::Connection, support SSL & WS, support tags
Diffstat (limited to 'spec/irc_spec.cr')
-rw-r--r--spec/irc_spec.cr3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/irc_spec.cr b/spec/irc_spec.cr
index 0053024..2d5d072 100644
--- a/spec/irc_spec.cr
+++ b/spec/irc_spec.cr
@@ -3,7 +3,8 @@ require "./spec_helper"
describe "PING" do
it "responds with PONG" do
response = String.build do |io|
- client = Twitch::IRC.new(io, "foo", "bar")
+ connection = Twitch::IRC::Connection.new(io)
+ client = Twitch::IRC::Client.new(connection, "foo", "bar")
client.dispatch FastIRC::Message.new("PING", nil)
end
response.should eq FastIRC::Message.new("PONG", ["tmi.twitch.tv"]).to_s