diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-13 17:07:46 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-13 17:07:46 +0100 |
commit | b683026c94f15f6f4b5214820b1446a8ef684658 (patch) | |
tree | 1d62a70d4f7fa0dc7acebcb3c761965bf9f65e5d /t/app/controller/contact.t | |
parent | c4e98cdb370e0968fe1a207fe3634539324cad2e (diff) |
placeholder for email sending code
Diffstat (limited to 't/app/controller/contact.t')
-rw-r--r-- | t/app/controller/contact.t | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t index a5135c60a..c4bf83613 100644 --- a/t/app/controller/contact.t +++ b/t/app/controller/contact.t @@ -145,4 +145,22 @@ for my $test ( }; } +for my $test ( + { + fields => { + em => 'test@example.com', + name => 'A name', + subject => 'A subject', + message => 'A message', + }, + }, + + ) +{ + subtest 'check email sent correctly' => sub { + $mech->get_ok('/contact'); + $mech->submit_form_ok( { with_fields => $test->{fields} } ); + $mech->content_contains('Thanks for your feedback'); + }; +} done_testing(); |