diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2013-12-09 12:27:40 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2013-12-09 16:52:54 +0000 |
commit | 3ddfe58cd5ba634589907be60431c2c4bc8dbf58 (patch) | |
tree | f37d2946e20afb5000fcf26c3464f94e4682a7e4 /t | |
parent | b1334a79073d622d99826bfb571a0c03c0d466f7 (diff) |
[Zurich] move mech test into override_config stanza
This was causing previous test failures when config != Zurich, due
to expected logic not getting triggered.
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/zurich.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index 530fde92b..3d25e3585 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -336,11 +336,11 @@ $mech->clear_emails_ok; }); $report = $reports[0]; -$mech->get_ok( '/admin/report_edit/' . $report->id ); -$mech->submit_form_ok( { with_fields => { state => 'planned' } } ); FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'zurich' ], }, sub { + $mech->get_ok( '/admin/report_edit/' . $report->id ); + $mech->submit_form_ok( { with_fields => { state => 'planned' } } ); $mech->get_ok( '/report/' . $report->id ); }; $mech->content_contains('In Bearbeitung'); |