Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

instead of checking file size, check file contents, this way they get…

… printed on smoke test reports
  • Loading branch information...
commit 429e239a3aa0cf94c8ec8c885b643f67790f1bd6 1 parent 3e82328
@ambs ambs authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 t/19_dancer/01_script.t
View
4 t/19_dancer/01_script.t
@@ -17,6 +17,7 @@ plan tests => 3 + @cases;
use Cwd qw(cwd);
use Dancer;
+use Dancer::FileUtils;
my $dir = File::Temp::tempdir(CLEANUP => 1, TMPDIR => 1);
my $cwd = cwd;
@@ -46,5 +47,6 @@ like($help, qr{Usage: .* dancer .* options}sx, 'dancer (without parameters)');
foreach my $case (@cases) {
my $create_here = qx{$cmd -x -a $case 2> err};
- ok (-z 'err', "create $case did not return error");
+ is scalar(Dancer::FileUtils::read_file_content('err')) => '',
+ "create $case did not return error";
}
Please sign in to comment.
Something went wrong with that request. Please try again.