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.

24 lines
410 B

  1. #!/usr/bin/env perl
  2. use strict;
  3. use warnings;
  4. use lib 'lib';
  5. use Data::Dumper;
  6. use Test::More tests => 2;
  7. use App::WRT;
  8. # Check that we can handle a site with an "index" file in the archive root.
  9. chdir 'example/flat_site';
  10. ok(
  11. my $w = App::WRT::new_from_file('wrt.json'),
  12. "got WRT object for a site with root index"
  13. );
  14. ok(
  15. $w->display() =~ m/front page/,
  16. 'front page contains index contents'
  17. );