[Bps-public-commit] Path-Dispatcher branch, master, updated. c23370905b980c1918c21b7ce0b6ffd05d5a3400

Shawn Moore sartak at bestpractical.com
Sun Oct 17 04:59:44 EDT 2010


The branch, master has been updated
       via  c23370905b980c1918c21b7ce0b6ffd05d5a3400 (commit)
      from  f5544e06e652d47ff640e6c1d3d55afd8b2c1366 (commit)

Summary of changes:
 t/030-exceptions.t |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit c23370905b980c1918c21b7ce0b6ffd05d5a3400
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Sun Oct 17 17:59:31 2010 +0900

    Use a simpler always-match rule

diff --git a/t/030-exceptions.t b/t/030-exceptions.t
index d87fb22..5c633a2 100644
--- a/t/030-exceptions.t
+++ b/t/030-exceptions.t
@@ -14,9 +14,8 @@ my $not_true = bless {}, 'Moo';
 
 my $dispatcher = Path::Dispatcher->new(
     rules => [
-        Path::Dispatcher::Rule::CodeRef->new(
-            matcher => sub { 1 },
-            block   => sub { die $not_true; "foobar matched" },
+        Path::Dispatcher::Rule::Always->new(
+            block => sub { die $not_true; "foobar matched" },
         ),
     ],
 );

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list