From 7ab4c2d95f562665765be7205506ae96d6c8afd4 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Wed, 28 Jul 2010 14:47:28 -0500 Subject: [PATCH] test overridden dispatch should trump default --- t/Asset/dispatch.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Asset/dispatch.t b/t/Asset/dispatch.t index 4319296d9..8846ca1bd 100644 --- a/t/Asset/dispatch.t +++ b/t/Asset/dispatch.t @@ -57,7 +57,7 @@ WebGUI::Test->addToCleanup( $tag ); #---------------------------------------------------------------------------- # Tests -plan tests => 4; # Increment this number for each test you create +plan tests => 5; # Increment this number for each test you create #---------------------------------------------------------------------------- # Test dispatch @@ -73,6 +73,6 @@ $session->request->setup_body( { func => 'edit', } ); is( $td->dispatch, "www_edit", "dispatch handles ?func= query param" ); - +is( $td->dispatch( '/foo' ), "bar", "overridden dispatch trumps ?func= query param" ); #vim:ft=perl