Skip to content

Commit

Permalink
new test plugin for home-made hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Sukrieh committed Jul 8, 2012
1 parent b39749a commit a6f4ed6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions t/lib/Hookee.pm
@@ -0,0 +1,14 @@
package t::lib::Hookee;

use Dancer::Plugin;

register_hook 'start_hookee', 'stop_hookee';
register_hook 'third_hook';

register some_keyword => sub {
execute_hooks('start_hookee');
};

register_plugin for_versions => [ 2 ];

1;

0 comments on commit a6f4ed6

Please sign in to comment.