test overridden dispatch should trump default

This commit is contained in:
Doug Bell 2010-07-28 14:47:28 -05:00 committed by Colin Kuskie
parent 2d8c354cb3
commit 7ab4c2d95f

View file

@ -57,7 +57,7 @@ WebGUI::Test->addToCleanup( $tag );
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
# Tests # 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 # Test dispatch
@ -73,6 +73,6 @@ $session->request->setup_body( {
func => 'edit', func => 'edit',
} ); } );
is( $td->dispatch, "www_edit", "dispatch handles ?func= query param" ); is( $td->dispatch, "www_edit", "dispatch handles ?func= query param" );
is( $td->dispatch( '/foo' ), "bar", "overridden dispatch trumps ?func= query param" );
#vim:ft=perl #vim:ft=perl