aboutsummaryrefslogtreecommitdiffstats
path: root/t/00-check-config.t
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2014-05-21 11:42:23 +0000
committerMatthew Somerville <matthew@mysociety.org>2014-12-12 12:41:32 +0000
commit244b2876c837f65ed9477a57c3ed297f493b44a5 (patch)
tree0f8c3eb297e59fe98ffc79b74137c5fd5e8f4784 /t/00-check-config.t
parent43c98742ee85c73c4783451ceeea28108bb793c6 (diff)
Add a script to always test on a clean db/config.
Fixes #786.
Diffstat (limited to 't/00-check-config.t')
-rw-r--r--t/00-check-config.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/00-check-config.t b/t/00-check-config.t
index 20f0fe8cf..00e782e74 100644
--- a/t/00-check-config.t
+++ b/t/00-check-config.t
@@ -16,7 +16,8 @@ use FixMyStreet;
# load the config file and store the contents in a readonly hash
my $example_config = YAML::LoadFile( FixMyStreet->path_to("conf/general.yml-example") );
-my $local_config = YAML::LoadFile( FixMyStreet->path_to("conf/general.yml") );
+my $CONF_FILE = $ENV{FMS_OVERRIDE_CONFIG} || 'general';
+my $local_config = YAML::LoadFile( FixMyStreet->path_to("conf/${CONF_FILE}.yml") );
# find all keys missing from each config
my @missing_from_example = find_missing( $example_config, $local_config );