summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Schoenfelder <paulschoenfelder@gmail.com>2014-02-19 20:46:27 -0600
committerPaul Schoenfelder <paulschoenfelder@gmail.com>2014-02-19 20:46:27 -0600
commit0576f55bc6abc43b0952c16260e6d5ec340604c2 (patch)
tree40e5545517320be0d11e052f76954a695ecf6091 /test
parentEnsure that cmd! when called with binary sends command as charlist (diff)
Add support for /INVITE
Diffstat (limited to 'test')
-rw-r--r--test/commands_test.exs3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/commands_test.exs b/test/commands_test.exs
index bed2960..950e559 100644
--- a/test/commands_test.exs
+++ b/test/commands_test.exs
@@ -19,10 +19,9 @@ defmodule ExIrc.CommandsTest do
assert [['QUIT :', 'Goodbye, cruel world.'], '\r\n'] == quit! "Goodbye, cruel world."
assert [['KICK ', '#testchan', ' ', 'testuser'], '\r\n'] == kick! "#testchan", "testuser"
assert [['KICK ', '#testchan', ' ', 'testuser', ' ', 'Get outta here!'], '\r\n'] == kick! "#testchan", "testuser", "Get outta here!"
- # User modes
assert [['MODE ', 'testuser', ' ', '-o'], '\r\n'] == mode! "testuser", "-o"
- # Channel modes
assert [['MODE ', '#testchan', ' ', '+im'], '\r\n'] == mode! "#testchan", "+im"
assert [['MODE ', '#testchan', ' ', '+o', ' ', 'testuser'], '\r\n'] = mode! "#testchan", "+o", "testuser"
+ assert [['INVITE ', 'testuser', ' ', '#testchan'], '\r\n'] = invite! "testuser", "#testchan"
end
end \ No newline at end of file