aboutsummaryrefslogtreecommitdiff
path: root/test.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 05:12:50 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 05:12:50 -0700
commit376b34ee7249525b0adb49e8c8043ab2fa0d8347 (patch)
treeec556bdaf918fee658675d701b75dc02c385117a /test.rb
parent282b36e2690aea415244c81eadf093c41f752194 (diff)
downloaddinobot-376b34ee7249525b0adb49e8c8043ab2fa0d8347.tar.gz
dinobot-376b34ee7249525b0adb49e8c8043ab2fa0d8347.tar.xz
Rename Echo to Test and add error testing.
Diffstat (limited to 'test.rb')
-rw-r--r--test.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test.rb b/test.rb
new file mode 100644
index 0000000..f2010a0
--- /dev/null
+++ b/test.rb
@@ -0,0 +1,19 @@
+require_relative 'module'
+
+module Dinobot
+ class Test < Module
+ def initialize
+ super
+
+ @commands << :echo << :error
+ end
+
+ def echo(user, channel, argument)
+ [[:say, channel, argument]]
+ end
+
+ def error(user, channel, argument)
+ x
+ end
+ end
+end