Created
October 7, 2011 01:18
-
-
Save cfcosta/1269201 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test_helper' | |
class IrcProtocolParserTest < MiniTest::Unit::TestCase | |
def setup | |
@protocol = Stewie::IrcProtocolParser.new | |
end | |
def test_parse_channel_nick_change | |
assert_equal [:nick, 'WiZ', 'Kilroy'], @protocol.parse(':WiZ NICK Kilroy') | |
end | |
def test_parse_channel_server_quit | |
message = ':Trillian SQUIT localhost :Bye!' | |
assert_equal [:squit, 'Trillian', 'localhost', 'Bye!'], @protocol.parse(message) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment