blob: 2d5d0724771a5d30e3bba3e8aca0df691bf4c822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require "./spec_helper"
describe "PING" do
it "responds with PONG" do
response = String.build do |io|
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
end
end
|