diff options
Diffstat (limited to 't/app/controller')
-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(); |