summary refs log tree commit diff
path: root/t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-04-28 09:18:39 +0200
committerfranck cuny <franck@lumberjaph.net>2010-04-28 09:18:39 +0200
commit22a2333a63dc7703c93342ef9824b7d22e716316 (patch)
tree0df06881ef313997bfdc4dd07edc374862c1c641 /t
parentPOD fix (diff)
downloadplack-middleware-throttle-master.tar.gz
Checking in changes prior to tagging of version 0.01. Changelog diff is: master
Diffstat (limited to '')
-rw-r--r--t/05_filter_path.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/05_filter_path.t b/t/05_filter_path.t
index 1be3706..fa86608 100644
--- a/t/05_filter_path.t
+++ b/t/05_filter_path.t
@@ -11,7 +11,7 @@ my $handler = builder {
     enable "Throttle::Hourly",
         max     => 1,
         backend => Plack::Middleware::Throttle::Backend::Hash->new(),
-        path    => qr{^/foo};
+        path    => qr{^/api};
     sub { [ '200', [ 'Content-Type' => 'text/html' ], ['hello world'] ] };
 };
 
@@ -26,11 +26,11 @@ test_psgi
             is $res->content, 'hello world', 'content is valid';
             ok !$res->header('X-RateLimit-Limit'), 'no header ratelimit';
         }
-        my $req = GET "http://localhost/foo";
+        my $req = GET "http://localhost/api";
         my $res = $cb->($req);
         is $res->content, 'hello world', 'content is valid';
         ok $res->header('X-RateLimit-Limit'), 'header ratelimit';
-        $req = GET "http://localhost/foo";
+        $req = GET "http://localhost/api";
         $res = $cb->($req);
         is $res->code, 503, 'rate limit exceeded';
     }