Skip to content

Commit

Permalink
Update tests to test, and reflect changes on Match->path
Browse files Browse the repository at this point in the history
Signed-off-by: Stevan Little <stevan.little@iinteractive.com>
  • Loading branch information
lestrrat authored and Stevan Little committed Mar 11, 2009
1 parent 892cb9a commit 13c924b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/Test/Path/Router.pm
Expand Up @@ -49,6 +49,8 @@ sub routes_ok {
my $match = $router->match($path);
my $generated_mapping = $match && $match->mapping;

$Test->ok( $match->path eq $path, "matched path and requested paths match" );

# the path supplied produces the
# same match as the hash supplied

Expand Down
2 changes: 1 addition & 1 deletion t/001_basic.t
Expand Up @@ -3,7 +3,7 @@
use strict;
use warnings;

use Test::More tests => 6;
use Test::More tests => 14;
use Test::Path::Router;

use Moose::Util::TypeConstraints;
Expand Down
2 changes: 1 addition & 1 deletion t/002_w_optional.t
Expand Up @@ -3,7 +3,7 @@
use strict;
use warnings;

use Test::More tests => 3;
use Test::More tests => 10;
use Test::Path::Router;

BEGIN {
Expand Down

0 comments on commit 13c924b

Please sign in to comment.