Fix logic in _kill
[gitmo/MooseX-Daemonize.git] / t / 01.filecreate.t
index fba64ec..7794164 100644 (file)
@@ -25,6 +25,8 @@ use MooseX::Daemonize;
 }
 
 package main;
+use strict;
+use warnings;
 use Cwd;
 
 ## Try to make sure we are in the test directory
@@ -36,7 +38,7 @@ my $app = FileMaker->new(
     filename => "$cwd/im_alive",
 );
 daemonize_ok( $app, 'child forked okay' );
-ok( -e $app->filename, "$file exists" );
+ok( -e $app->filename, "file exists" );
 ok( $app->stop( no_exit => 1 ), 'app stopped' );
-ok( -e $app->pidfile == undef, 'pidfile gone' );
+ok( not(-e $app->pidfile) , 'pidfile gone' );
 unlink( $app->filename );