diff options
author | Marius Halden <marius.h@lden.org> | 2017-11-03 16:13:59 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2017-11-03 16:13:59 +0100 |
commit | 42d874db498d0fabae92d0c87acf99054d92391b (patch) | |
tree | d0cf5afdee3d244c4e5da6fe1ab9acba620634df /t/app/sendreport/email.t | |
parent | 19a7c5dda85a47a68040c742791e9cd9d3e52be6 (diff) | |
parent | dc7613329c275cd158fdde8faf1c0e301f5b7202 (diff) |
Merge tag 'v2.2' into fiksgatami-dev
Diffstat (limited to 't/app/sendreport/email.t')
-rw-r--r-- | t/app/sendreport/email.t | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/t/app/sendreport/email.t b/t/app/sendreport/email.t index 471145dcb..6b292725b 100644 --- a/t/app/sendreport/email.t +++ b/t/app/sendreport/email.t @@ -1,13 +1,7 @@ -use strict; -use warnings; - -use Test::More; - use FixMyStreet; use FixMyStreet::DB; use FixMyStreet::SendReport::Email; use FixMyStreet::TestMech; -use mySociety::Locale; ok( my $mech = FixMyStreet::TestMech->new, 'Created mech object' ); @@ -61,7 +55,7 @@ foreach my $test ( { ) { subtest $test->{desc} => sub { my $e = FixMyStreet::SendReport::Email->new; - $contact->update( { confirmed => 0 } ) if $test->{unconfirmed}; + $contact->update( { state => 'unconfirmed' } ) if $test->{unconfirmed}; $contact->update( { note => $test->{note} } ) if $test->{note}; $e->add_body( $body ) if $test->{add_council}; is $e->build_recipient_list( $row, {} ), $test->{count}, 'correct recipient list count'; @@ -74,7 +68,3 @@ foreach my $test ( { } done_testing(); - -END { - $mech->delete_body($body); -} |