summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-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