Crirc/spec/controller/command/ping.cr
2017-11-08 15:07:18 +01:00

18 lines
503 B
Crystal

module Crirc::Test::Controller::Command::Ping
include Crirc::Controller::Command::Ping
extend self
def puts(data)
data
end
end
describe Crirc::Controller::Command::Ping do
it "basic test" do
Crirc::Test::Controller::Command::Ping.ping("0").should eq("PING :0")
Crirc::Test::Controller::Command::Ping.ping.should eq("PING :0")
Crirc::Test::Controller::Command::Ping.pong("0").should eq("PONG :0")
Crirc::Test::Controller::Command::Ping.pong.should eq("PONG :0")
end
end