Respond to !forget, even if unaddressed
[poe-component-irc-plugin-infobot.git] / t / POE-Component-IRC-Plugin-Infobot.t
index cbe422ebc33114c303ddf7f8a960dbb747cfc3c5..8846b8313a90dcf89e516636cad3e5bfb70b12d3 100644 (file)
@@ -3,7 +3,7 @@ use strict;
 use warnings;
 
 use Test::MockObject;
-use Test::More tests => 16;
+use Test::More tests => 17;
 
 BEGIN { use_ok('POE::Component::IRC::Plugin::Infobot') };
 
@@ -42,6 +42,7 @@ runtest 'bot: a is c', '... but a is b!', 'redefine factoid';
 runtest 'a?', 'a is b', 'query';
 runtest 'bot: forget a', 'mgv: I forgot a', 'forget';
 runtest 'bot: forget a', 'I didn\'t have anything matching a, mgv', 'forget inexistent factoid';
+runtest '!forget a', 'I didn\'t have anything matching a, mgv', '!forget';
 runtest 'a?', undef, 'query for inexistent factoid';
 runtest 'bot: a?', 'I don\'t know, mgv', 'addressed query for inexistent factoid';
 
This page took 0.009427 seconds and 4 git commands to generate.