diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2014-06-04 16:07:13 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2014-06-04 16:08:20 +0000 |
commit | 57767fdffd92349aff21fab2e43fb6b869fd1648 (patch) | |
tree | 8cd24607267903bc3bbcac3c35e1c981ce4de00f /perllib/FixMyStreet.pm | |
parent | a1e293164e924f182c04b009d5e1344406440326 (diff) |
Comment setup_request's conf override in test_mode
Diffstat (limited to 'perllib/FixMyStreet.pm')
-rw-r--r-- | perllib/FixMyStreet.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perllib/FixMyStreet.pm b/perllib/FixMyStreet.pm index de55e0070..34c7bfe21 100644 --- a/perllib/FixMyStreet.pm +++ b/perllib/FixMyStreet.pm @@ -96,6 +96,12 @@ sub override_config($&) { # For historical reasons, we have two ways of asking for config variables. # Override them both, I'm sure we'll find time to get rid of one eventually. + # + # NB: though we have these two functions, templates tend to use [% c.config %] + # This overriding happens after $c->config is set, so note that + # FixMyStreet::App->setup_request rewrites $c->config if we are in + # test_mode, so tests should Just Work there too. + my $override_guard1 = Sub::Override->new( "FixMyStreet::config", sub { |