#!/usr/bin/perl
use strict;
use warnings;
-use Test::More tests => 107;
+use Test::More tests => 108;
use Test::MockModule;
# module compilation
$r->path('/table');
$r->parse_path;
is($r->table, 'table', '... parses "table" from the first part of path');
-ok(!defined $r->action && @{$r->args} == 0,
- '... leaving "action" undefined, and "args" as empty list, if not present');
+ok(@{$r->args} == 0, '... "args" default to empty list');
$r->path('/table/action');
$r->parse_path;
is_deeply($r->args, [qw(arg1 arg2)],
'... "args" are populated from remaning components');
+# ... action defaults to index
+$r->path('/table');
+$r->parse_path;
+is($r->action, 'index', '... action defaults to index');
+
# get_template_root()
can_ok(Maypole => 'get_template_root');
is(Maypole->get_template_root(), '.', '... returns "."');