aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2016-06-19 17:45:01 +0100
committerdakkar <dakkar@thenautilus.net>2016-06-19 17:45:01 +0100
commit175b96bddb37179ab9d851877fa1e99d31f8471d (patch)
tree23e0c0f9eddc7e80fcfdbfee985b9b78d93e9a12 /t
parentTODO list (diff)
downloadSietima-175b96bddb37179ab9d851877fa1e99d31f8471d.tar.gz
Sietima-175b96bddb37179ab9d851877fa1e99d31f8471d.tar.bz2
Sietima-175b96bddb37179ab9d851877fa1e99d31f8471d.zip
NoMail role
Diffstat (limited to 't')
-rw-r--r--t/tests/sietima/role/nomail.t24
1 files changed, 24 insertions, 0 deletions
diff --git a/t/tests/sietima/role/nomail.t b/t/tests/sietima/role/nomail.t
new file mode 100644
index 0000000..df4d106
--- /dev/null
+++ b/t/tests/sietima/role/nomail.t
@@ -0,0 +1,24 @@
+#!perl
+use strict;
+use warnings;
+use 5.020;
+use lib 't/lib';
+use Test::Sietima;
+
+my $s = make_sietima(
+ with_traits => ['NoMail'],
+ subscribers => [
+ {
+ raw_address => 'one@users.example.com',
+ wants_mail => 0,
+ },
+ 'two@users.example.com',
+ ],
+);
+
+test_sending(
+ sietima => $s,
+ to => ['two@users.example.com'],
+);
+
+done_testing;