X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F001_basic.t;h=b6e112aac39c35697a871ec9a0fcb4144922dcc8;hb=9c11a56203c2d14482446edf9d00b4001bef7877;hp=207872c581d7b57524157448005f587f244cbdea;hpb=a1dd17885cb53c97eec00e32b3007dd4f389fc76;p=catagits%2FCatalystX-Declare.git diff --git a/t/001_basic.t b/t/001_basic.t index 207872c..b6e112a 100644 --- a/t/001_basic.t +++ b/t/001_basic.t @@ -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';