Almost-minimal filesystem based blog.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
601 B

#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use 5.10.0;
use lib 'lib';
use Encode;
use Test::More tests => 3;
use App::WRT::Mock::FileIO;
chdir 'example/blog';
require_ok('../../bin/wrt-render-all');
my $output_string;
my $output = sub {
$output_string .= $_[0] . "\n";
};
my $mock_io = App::WRT::Mock::FileIO->new();
my @local_argv = ();
main($output, $mock_io, @local_argv);
ok(
$output_string =~ 'rendered 27 entries',
'rendered expected number of entries'
) or diag($output_string);
ok(
$output_string =~ 'seconds',
'log mentions seconds'
) or diag($output_string);