X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fpath_action_empty_brackets.t;fp=t%2Fpath_action_empty_brackets.t;h=415f1216a9b2772aee47fad6c18c7c07a729e48f;hp=0000000000000000000000000000000000000000;hb=dd6a9f23fda9c6520be5021f7fb51f4fb345c8c4;hpb=d2995a765f120b78a134a6e8dfb14b0f7fde8644 diff --git a/t/path_action_empty_brackets.t b/t/path_action_empty_brackets.t new file mode 100644 index 0000000..415f121 --- /dev/null +++ b/t/path_action_empty_brackets.t @@ -0,0 +1,27 @@ +use strict; +use warnings; + +use FindBin; +use lib "$FindBin::Bin/lib"; + +use Test::More tests => 9; +use Catalyst::Test 'TestPath'; + + +{ + ok( my $response = request('http://localhost/one'), 'Request' ); + ok( $response->is_success, '"Path" - Response Successful 2xx' ); + is( $response->content, 'OK', '"Path" - Body okay' ); +} +{ + ok( my $response = request('http://localhost/two'), 'Request' ); + ok( $response->is_success, '"Path()" - Response Successful 2xx' ); + is( $response->content, 'OK', '"Path()" - Body okay' ); +} +{ + ok( my $response = request('http://localhost/three'), 'Request' ); + ok( $response->is_success, '"Path(\'\')" - Response Successful 2xx' ); + is( $response->content, 'OK', '"Path(\'\')" - Body okay' ); +} + +