diff options
-rw-r--r-- | MANIFEST | 1 | ||||
-rw-r--r-- | t/custom-name.t | 20 |
2 files changed, 21 insertions, 0 deletions
@@ -5,6 +5,7 @@ LICENSE Makefile.PL MANIFEST README +t/custom-name.t t/encrypt.t t/encrypt-sign.t t/require-key-data.t diff --git a/t/custom-name.t b/t/custom-name.t new file mode 100644 index 0000000..9f47d10 --- /dev/null +++ b/t/custom-name.t @@ -0,0 +1,20 @@ +#!perl -T + +use strict; +use warnings; +use utf8; + +use Test::More tests => 2; + +use Mail::Run::Crypt; + +our $VERSION = '0.07'; + +my $name = 'mrc_custom'; +my %opts = ( + mailto => 'nobody@example.com', + name => $name, +); +my $mrc = Mail::Run::Crypt->new(%opts); +ok( defined $mrc, 'constructed' ); +ok( $mrc->{name} eq $name, 'custom_name' ); |