moved to CatalystX::Declare
[catagits/CatalystX-Declare.git] / t / 001_basic.t
index 207872c..b6e112a 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 use FindBin;
 use lib "$FindBin::Bin/lib";
 
-use Test::More tests => 12;
+use Test::More tests => 17;
 use Catalyst::Test 'TestApp';
 
 # simple stuff
@@ -39,3 +39,14 @@ do {
 # action class
 is get('/foo/book/Whatever/view/xml'), 'Page 1 of "Whatever" as XML', 'action class was set';
 is get('/foo/book/Fnord/view/html?page=7'), 'Page 7 of "Fnord" as HTML', 'action class was set';
+
+# final keyword
+is get('/foo/finals/in_front'), 'foo/in_front', 'final syntax element as declarator';
+is get('/foo/finals/final_middle'), 'foo/final_middle', 'final syntax element in the middle';
+is get('/foo/finals/final_at_end'), 'foo/final_at_end', 'final syntax element at the end';
+
+# privates
+is get('/foo/expose_not_really_here'), 23, 'private action works';
+
+# specify chain target directly via action
+is get('/foo/pointed/beaver'), 'Your beaver is pointed!', 'chain target specified via action';