Skip to content

Commit

Permalink
find source of failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Apr 24, 2012
1 parent 44360fe commit b557b84
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ copyright_holder = Jakob Voss

[@Git]
[Git::NextVersion]

[ShareDir]
dir=shares/app_padadoy
[ModuleShareDirs]
Expand All @@ -20,6 +21,9 @@ format=%-9v %{yyyy-MM-dd}d
[PkgVersion]
[AutoPrereqs]

[Prereqs]
File::Path=2.08

[PruneFiles]
filename=README.md
filename=padadoy.conf
Expand Down
11 changes: 7 additions & 4 deletions t/create.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ use App::Padadoy;
my ($cwd) = (cwd =~ /^(.*)$/g); # untainted cwd

my $devdir = tempdir( CLEANUP => 1 );
diag "creating Foo::Bar app in $devdir";
chdir $devdir;

my $padadoy = App::Padadoy->new('', quiet => 1);
$padadoy->create('Foo::Bar');

ok( -d catdir($devdir,$_), "$_/ created" )
for qw(app data logs app/lib app/t app/lib/Foo libs);
foreach my $dir (qw(app data logs app/lib app/t app/lib/Foo libs)) {
ok( -d catdir($devdir,$dir), "$dir/ created" )
}

ok( -f catdir($devdir,$_), "$_ created" )
for qw(app/app.psgi app/lib/Foo/Bar.pm dotcloud.yml perl/index.pl);
foreach my $file (qw(app/app.psgi app/lib/Foo/Bar.pm dotcloud.yml perl/index.pl)) {
ok( -f catdir($devdir,$file), "$file created" )
}

# TODO: deplist.txt is not checked

Expand Down

0 comments on commit b557b84

Please sign in to comment.