From 3132621245630ac2ae345d331bb742ddeb88bfa2 Mon Sep 17 00:00:00 2001 From: Daniel Worrall Date: Wed, 22 May 2019 00:31:25 +0100 Subject: Add IRC::Connection, support SSL & WS, support tags --- spec/irc_spec.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/irc_spec.cr') 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 -- cgit v1.2.3