aboutsummaryrefslogtreecommitdiff
path: root/t/encrypt-explicit.t
diff options
context:
space:
mode:
Diffstat (limited to 't/encrypt-explicit.t')
-rw-r--r--t/encrypt-explicit.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/encrypt-explicit.t b/t/encrypt-explicit.t
new file mode 100644
index 0000000..9db5556
--- /dev/null
+++ b/t/encrypt-explicit.t
@@ -0,0 +1,16 @@
+#!perl -T
+
+use strict;
+use warnings;
+use utf8;
+
+use Test::More tests => 2;
+
+use Mail::Run::Crypt;
+
+our $VERSION = '0.07';
+
+my %opts = ( mailto => 'nobody@example.com', encrypt => 1 );
+my $mrc = Mail::Run::Crypt->new(%opts);
+ok( $mrc->{encrypt} == 1, 'encrypt_explicit_encrypt_on' );
+ok( $mrc->{sign} == 0, 'encrypt_explicit_sign_off' );