fixed test to use new way to init dispatch
[catagits/Web-Simple.git] / t / post.t
index 1caa802..f7d8d80 100644 (file)
--- a/t/post.t
+++ b/t/post.t
@@ -10,7 +10,7 @@ use Test::More (
 {
   use Web::Simple 'PostTest';
   package PostTest;
-  dispatch {
+  sub dispatch_request {
     sub (%:foo=&:bar~) {
       $_[1]->{bar} ||= 'EMPTY';
       [ 200,