diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-05-07 18:03:28 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-05-07 18:03:28 +0100 |
commit | 952e759f17d2920cca8620fb987947415bdb5898 (patch) | |
tree | 454bb0bc01e65ab205056f2e8d895b4e227c8b09 /t/app/helpers | |
parent | 408d9c08e172c0a6023a15f786c534839a2c56c9 (diff) |
Update some tests to work around small changes in some underlying modules.
Diffstat (limited to 't/app/helpers')
-rw-r--r-- | t/app/helpers/send_email.t | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/t/app/helpers/send_email.t b/t/app/helpers/send_email.t index 3067d90f3..14c7d363b 100644 --- a/t/app/helpers/send_email.t +++ b/t/app/helpers/send_email.t @@ -9,23 +9,14 @@ BEGIN { FixMyStreet->test_mode(1); } -use Test::More tests => 6; +use Test::More tests => 5; + +use Catalyst::Test 'FixMyStreet::App'; use Email::Send::Test; use Path::Class; -use_ok 'FixMyStreet::App'; -my $c = FixMyStreet::App->new( - { - request => Catalyst::Request->new( - { - base => URI->new('http://fixmystreet.com/'), - uri => URI->new('http://fixmystreet.com/') - } - ), - } -); -$c->setup_request(); +my $c = ctx_request("/"); # set some values in the stash $c->stash->{foo} = 'bar'; |