From dd5623be65f97ca2b21d1413d45785be35c91b94 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 19 Jan 2010 17:53:17 -0500 Subject: [PATCH] Unit Tests - Fixed tests that were broken when the config defaults changed. --- src/tests/cmd.t.cpp | 3 +++ src/tests/color.recurring.t | 1 + 2 files changed, 4 insertions(+) diff --git a/src/tests/cmd.t.cpp b/src/tests/cmd.t.cpp index 3453acdf3..971e6a7c2 100644 --- a/src/tests/cmd.t.cpp +++ b/src/tests/cmd.t.cpp @@ -35,6 +35,9 @@ int main (int argc, char** argv) { 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"); Cmd cmd; diff --git a/src/tests/color.recurring.t b/src/tests/color.recurring.t index 35325e2e1..7da224330 100755 --- a/src/tests/color.recurring.t +++ b/src/tests/color.recurring.t @@ -35,6 +35,7 @@ if (open my $fh, '>', 'color.rc') { print $fh "data.location=.\n", "color.recurring=red\n", + "color.due=\n", "_forcecolor=1\n"; close $fh; ok (-r 'color.rc', 'Created color.rc');