updated todo
[catagits/Catalyst-Devel.git] / t / generated_app.t
CommitLineData
ad9d93fc 1use strict;
2use warnings;
3
4use File::Temp qw/ tempdir /;
5
6my $dir = tempdir(); # CLEANUP => 1 );
7
8use Test::More;
9{
10 # Check exit status here
11 system("cd $dir; catalyst.pl TestApp");
12}
13# Fix paths / nl work on win32
14chdir("$dir/TestApp/");
15warn($dir);
16
17# Ok, this is lame.. Also, check +x permissions?
18my @files = qw|
19 Makefile.PL
2cb998f9 20 testapp.conf
21lib/TestApp.pm
22lib/TestApp/Controller/Root.pm
23README
24Changes
25t/01app.t
26t/02pod.t
27t/03podcoverage.t
28root/static/images/catalyst_logo.png
29root/static/images/btn_120x50_built.png
30root/static/images/btn_120x50_built_shadow.png
31root/static/images/btn_120x50_powered.png
32root/static/images/btn_120x50_powered_shadow.png
33root/static/images/btn_88x31_built.png
34root/static/images/btn_88x31_built_shadow.png
35root/static/images/btn_88x31_powered.png
36root/static/images/btn_88x31_powered_shadow.png
37root/favicon.ico
38Makefile.PL
39script/testapp_cgi.pl
40script/testapp_fastcgi.pl
41script/testapp_server.pl
42script/testapp_test.pl
43script/testapp_create.pl
ad9d93fc 44|;
45
46plan 'tests' => scalar @files;
47
48foreach my $fn (@files) {
49 ok -r $fn, "Have $fn in generated app";
50}
51