diff options
author | Chee Leong <klrkdekira@gmail.com> | 2013-06-27 12:07:50 +0800 |
---|---|---|
committer | Chee Leong <klrkdekira@gmail.com> | 2013-06-27 12:07:50 +0800 |
commit | 75a12f0b3943b16ffa404a1e6217907906fba6a8 (patch) | |
tree | 09b8cb4da93fc1be5dd7e11b0f1063523b1e9787 /t/app/controller | |
parent | be48583aa29473d150ee20a62bce7e84c9d33c82 (diff) | |
parent | 4f0f7fa9f77930996e7891b617523dce4364a6d5 (diff) |
Merge branch 'master' of https://github.com/Sinar/fixmystreet
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/alert_new.t | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/t/app/controller/alert_new.t b/t/app/controller/alert_new.t index 95a7d51e2..43d90c0ba 100644 --- a/t/app/controller/alert_new.t +++ b/t/app/controller/alert_new.t @@ -277,29 +277,8 @@ for my $test ( ok $alert, "Found the alert"; - my $email = $mech->get_email; - ok $email, "got an email"; - like $email->body, qr/$test->{email_text}/i, "Correct email text"; - - my ( $url, $url_token ) = $email->body =~ m{(http://\S+/A/)(\S+)}; - ok $url, "extracted confirm url '$url'"; - - my $token = FixMyStreet::App->model('DB::Token')->find( - { - token => $url_token, - scope => 'alert' - } - ); - ok $token, 'Token found in database'; - ok $alert->id == $token->data->{id}, 'token alertid matches alert id'; - $mech->clear_emails_ok; - $mech->get_ok("/A/$url_token"); - $mech->content_contains('error confirming'); - - $alert->discard_changes; - ok !$alert->confirmed, 'alert not set to confirmed'; $abuse->delete; |