aboutsummaryrefslogtreecommitdiff
path: root/test.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-15 07:56:44 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-15 07:56:44 -0700
commit6d4f0b1a3c82a983edd7ccba6dee5a7c79a8c941 (patch)
tree92f34b33eac5f55f06915d203d14edc680958f09 /test.rb
parent9f44e1d9372e4168def6e90f6b49d61c74f0045d (diff)
downloaddinobot-6d4f0b1a3c82a983edd7ccba6dee5a7c79a8c941.tar.gz
dinobot-6d4f0b1a3c82a983edd7ccba6dee5a7c79a8c941.tar.xz
Add method list validation.
Diffstat (limited to 'test.rb')
-rw-r--r--test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test.rb b/test.rb
index e721104..a54683e 100644
--- a/test.rb
+++ b/test.rb
@@ -6,7 +6,7 @@ module Dinobot
super
@commands << :echo << :ping << :x3 << :fooify
- @commands << :error << :timeout << :wrongreturn
+ @commands << :error << :timeout << :wrongreturn << :invalidmethods
end
def echo(user, channel, argument)
@@ -36,5 +36,9 @@ module Dinobot
def wrongreturn(user, channel, argument)
0
end
+
+ def invalidmethods(user, channel, argument)
+ [[:say, channel]]
+ end
end
end