diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-10-04 11:46:29 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-10-04 11:58:06 +0100 |
commit | 505aa9bcba1fe2f419e95cfa5122fab83b6f6ae0 (patch) | |
tree | 9a2118ee5dc352d7a037626a101f1697c40d5210 /t/cobrand | |
parent | ead4a7ebbd33ac3e6e2c6bf3cb0302189eae99d1 (diff) | |
parent | d8fdbf5d353238d9e4c334f06de251987f7e60cf (diff) |
Merge branch 'issues/forcouncils/36-mobile-inspector-improvements'
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/zurich.t | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index 53d8dba0f..1ea55b003 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -936,8 +936,8 @@ subtest 'Status update shown as appropriate' => sub { my ($state, $update, $public, $user_response) = @$_; $report->update({ state => $state }); $mech->get_ok( '/admin/report_edit/' . $report->id ); - contains_or_lacks($mech, $update, "<textarea name='status_update'"); - contains_or_lacks($mech, $public || $user_response, '<div class="admin-official-answer">'); + $mech->contains_or_lacks($update, "name='status_update'"); + $mech->contains_or_lacks($public || $user_response, '<div class="admin-official-answer">'); if ($public) { $mech->get_ok( '/report/' . $report->id ); @@ -947,17 +947,6 @@ subtest 'Status update shown as appropriate' => sub { }; }; -# TODO refactor into FixMyStreet::TestMech; -sub contains_or_lacks { - my ($mech, $contains, $text) = @_; - if ($contains) { - $mech->content_contains($text); - } - else { - $mech->content_lacks($text); - } -} - subtest 'time_spent' => sub { FixMyStreet::override_config { ALLOWED_COBRANDS => [ 'zurich' ], |