From 6d4f0b1a3c82a983edd7ccba6dee5a7c79a8c941 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 15 Apr 2014 07:56:44 -0700 Subject: Add method list validation. --- test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test.rb') 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 -- cgit v1.2.3-70-g09d2