Merge branch 'grim8634-104-path_empty_brackets't push origin master
[catagits/Catalyst-Runtime.git] / t / path_action_empty_brackets.t
diff --git a/t/path_action_empty_brackets.t b/t/path_action_empty_brackets.t
new file mode 100644 (file)
index 0000000..5d100d5
--- /dev/null
@@ -0,0 +1,30 @@
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+use Test::More tests => 12;
+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' );
+}
+{
+    ok( my $response = request('http://localhost/four'), 'Request' );
+    ok( $response->is_success, '"Path(\'\')" - Response Successful 2xx' );
+    is( $response->content, 'OK', '"Path() Args()" - Body okay' );
+}
\ No newline at end of file