From 7f40cd0feda1e73cb79ac800762d19f4d5699a7b Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 24 Mar 2017 16:25:53 +0000 Subject: fix list headers --- t/tests/sietima/role/headers.t | 4 +++- t/tests/sietima/role/manualsubscription.t | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/tests/sietima/role/headers.t b/t/tests/sietima/role/headers.t index 9f3e664..eb96dd2 100644 --- a/t/tests/sietima/role/headers.t +++ b/t/tests/sietima/role/headers.t @@ -12,6 +12,7 @@ package Sietima::Role::ForTesting { $self->$orig->%*, test1 => AddressFromStr->coerce('name '), 'test+2' => 'http://test.example.com', + test3 => ['name (comment) ','mailto:thing@example.com' ], }; }; }; @@ -31,12 +32,13 @@ subtest 'list headers should be added' => sub { sietima => $s, mails => [ object { - call sub { +{ shift->header_str_pairs } } => hash { + call sub { +{ shift->header_raw_pairs } } => hash { field 'List-Id' => 'test-list '; field 'List-Owner' => ''; field 'List-Post' => ''; field 'List-Test1' => ''; field 'List-Test-2' => ''; + field 'List-Test3' => ' (comment), '; field 'Date' => D(); field 'MIME-Version' => D(); diff --git a/t/tests/sietima/role/manualsubscription.t b/t/tests/sietima/role/manualsubscription.t index f99805d..ade2062 100644 --- a/t/tests/sietima/role/manualsubscription.t +++ b/t/tests/sietima/role/manualsubscription.t @@ -17,7 +17,7 @@ subtest '(un)sub headers should be added' => sub { sietima => $s, mails => [ object { - call sub { +{ shift->header_str_pairs } } => hash { + call sub { +{ shift->header_raw_pairs } } => hash { field 'List-Subscribe' => ''; field 'List-Unsubscribe' => ''; -- cgit v1.2.3