diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-05-31 12:48:17 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-05-31 16:53:07 +0100 |
commit | 1bb94cd0bf0821927b3f449d832a9982b0397fa9 (patch) | |
tree | 2b8be8ab1202b7299a2877c6ea2732a9e6fe611e /t/app/sendreport | |
parent | 03d2376e59e69b2e18cbd8cf98f7956393a4fd5b (diff) |
Auto-add strict/warnings/Test::More with TestMech.
Diffstat (limited to 't/app/sendreport')
-rw-r--r-- | t/app/sendreport/email.t | 5 | ||||
-rw-r--r-- | t/app/sendreport/inspection_required.t | 13 |
2 files changed, 4 insertions, 14 deletions
diff --git a/t/app/sendreport/email.t b/t/app/sendreport/email.t index 471145dcb..a9bc9f2b1 100644 --- a/t/app/sendreport/email.t +++ b/t/app/sendreport/email.t @@ -1,8 +1,3 @@ -use strict; -use warnings; - -use Test::More; - use FixMyStreet; use FixMyStreet::DB; use FixMyStreet::SendReport::Email; diff --git a/t/app/sendreport/inspection_required.t b/t/app/sendreport/inspection_required.t index f9d40d39f..f588e00f1 100644 --- a/t/app/sendreport/inspection_required.t +++ b/t/app/sendreport/inspection_required.t @@ -1,8 +1,3 @@ -use strict; -use warnings; - -use Test::More; - use FixMyStreet; use FixMyStreet::DB; use FixMyStreet::TestMech; @@ -31,13 +26,13 @@ my @reports = $mech->create_problems_for_body( 1, $body->id, 'Test', { }); my $report = $reports[0]; -subtest 'Report isn’t sent if uninspected' => sub { +subtest "Report isn't sent if uninspected" => sub { $mech->clear_emails_ok; FixMyStreet::DB->resultset('Problem')->send_reports(); $mech->email_count_is( 0 ); - is $report->whensent, undef, 'Report hasn’t been sent'; + is $report->whensent, undef, "Report hasn't been sent"; }; subtest 'Report is sent when inspected' => sub { @@ -72,7 +67,7 @@ subtest 'Uninspected report is sent when made by trusted user' => sub { is $report->get_extra_metadata('inspected'), undef, 'Report not marked as inspected'; }; -subtest 'Uninspected report isn’t sent when user rep is too low' => sub { +subtest "Uninspected report isn't sent when user rep is too low" => sub { $mech->clear_emails_ok; $report->whensent( undef ); $report->update; @@ -88,7 +83,7 @@ subtest 'Uninspected report isn’t sent when user rep is too low' => sub { $report->discard_changes; $mech->email_count_is( 0 ); - is $report->whensent, undef, 'Report hasn’t been sent'; + is $report->whensent, undef, "Report hasn't been sent"; }; subtest 'Uninspected report is sent when user rep is high enough' => sub { |