blob: e3a266b01f68aee0c8d016a6bf9a8de6691d9ae6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
use lib 't/lib'; use Test::Sietima; my $s = make_sietima( with_traits => ['SubjectTag'], subscribers => [ 'one@users.example.com', 'two@users.example.com', ], subject_tag => 'foo', ); subtest 'adding tag' => sub { test_sending( sietima => $s, mails => [ object { call [ header_str => 'Subject' ] => '[foo] Test Message'; }, ], ); }; subtest 'tag already there' => sub { my $subject = "[foo] \N{HEAVY BLACK HEART} test"; test_sending( sietima => $s, mail => { subject => $subject, }, mails => [ object { call [ header_str => 'Subject' ] => $subject; }, ], ); }; done_testing;
|