Unit Tests

- Fixed tests that were broken when the config defaults changed.
This commit is contained in:
Paul Beckingham 2010-01-19 17:53:17 -05:00
parent fccd0d6c96
commit dd5623be65
2 changed files with 4 additions and 0 deletions

View file

@ -35,6 +35,9 @@ int main (int argc, char** argv)
{ {
UnitTest t (78); UnitTest t (78);
// Without Context::initialize, there is no set of defaults loaded into
// Context::Config.
context.initialize ();
context.config.set ("report.foo.columns", "id"); context.config.set ("report.foo.columns", "id");
Cmd cmd; Cmd cmd;

View file

@ -35,6 +35,7 @@ if (open my $fh, '>', 'color.rc')
{ {
print $fh "data.location=.\n", print $fh "data.location=.\n",
"color.recurring=red\n", "color.recurring=red\n",
"color.due=\n",
"_forcecolor=1\n"; "_forcecolor=1\n";
close $fh; close $fh;
ok (-r 'color.rc', 'Created color.rc'); ok (-r 'color.rc', 'Created color.rc');