-
-
30 Apr 2015 20:48:27 UTC
- Distribution: Jifty
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (17)
- Testers (11 / 233 / 2)
- Kwalitee
Bus factor: 3- % Coverage
- License: perl_5
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (1.24MB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Any::Moose
- App::CLI
- CGI
- CGI::Cookie::Splitter
- CGI::Emulate::PSGI
- CSS::Squish
- Cache::Cache
- Cache::Memcached
- Calendar::Simple
- Carp::Clan
- Class::Accessor
- Class::Accessor::Named
- Class::Container
- Class::Data::Inheritable
- Class::Inspector
- Class::Trigger
- Clone
- Compress::Zlib
- Crypt::CBC
- Crypt::Rijndael
- DBD::SQLite
- DBI
- Data::Dump::Streamer
- Data::Page
- Data::UUID
- Date::Manip
- DateTime
- DateTime::Locale
- Devel::Cover
- Email::Abstract
- Email::Folder
- Email::LocalDelivery
- Email::MIME
- Email::MIME::ContentType
- Email::MIME::CreateHTML
- Email::Send
- Email::Simple
- Email::Simple::Creator
- Exception::Class
- Exporter::Lite
- FCGI::ProcManager
- File::Find::Rule
- File::MMagic
- File::ShareDir
- File::Spec
- File::Temp
- HTML::Entities
- HTML::Lint
- HTML::Mason
- HTML::Mason::Plugin
- HTML::TreeBuilder::XPath
- HTTP::Cookies
- HTTP::Date
- Hash::Merge
- Hash::MultiValue
- IO::Handle::Util
- IPC::Run3
- JSON
- JSON::XS
- Jifty::DBI
- LWP::UserAgent
- List::MoreUtils
- Locale::Maketext::Extract
- Locale::Maketext::Lexicon
- Log::Log4perl
- MIME::Types
- Module::CoreList
- Module::Install::Admin
- Module::Pluggable
- Module::Pluggable::Object
- Module::Refresh
- Module::ScanDeps
- Object::Declare
- Params::Validate
- Plack
- Plack::Middleware::Deflater
- Pod::Simple
- SQL::ReservedWords
- SUPER
- Scalar::Defer
- Shell::Command
- String::BufferStack
- String::Koremutake
- Sub::Exporter
- Template::Declare
- Test::Base
- Test::Email
- Test::Exception
- Test::HTML::Lint
- Test::LongString
- Test::MockModule
- Test::MockObject
- Test::More
- Test::Script::Run
- Test::WWW::Mechanize
- Test::WWW::Mechanize::PSGI
- Test::WWW::Selenium
- UNIVERSAL::require
- URI
- URI::Escape
- WWW::Mechanize
- Web::Hippie
- XML::Simple
- XML::Writer
- YAML
- YAML::Syck
- version
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Jifty::Test::Email - Test mail notification
SYNOPSIS
use Jifty::Test::Email; mail_ok { # ... code } { from => 'admin@localhost', body => qr('hello') }, { from => 'admin@localhost', body => qr('hello again') }; # ... more code # XXX: not yet mail_sent_ok { from => 'admin@localhost', body => qr('hello') }; # you should expect all mails by the end of the test
DESCRIPTION
This is a test helper module for jifty, allowing you to expect mail notification generated during the block or the test.
METHODS
mail_ok BLOCK HASHREF [, HASHREF ...]
Executes the
BLOCK
, and expects it to send a number of emails equal to the number ofHASHREF
s after theBLOCK
. "ok" in Test::Email is used to check if the messages match up to the appropriate hashrefs.ENDING TESTS
An END block causes the test to
die
if there are uncaught notifications at the end of the test script.Module Install Instructions
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm Jifty
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.