3 |
use strict; |
use strict; |
4 |
use blib; |
use blib; |
5 |
|
|
6 |
use Test::More tests => 3; |
use Test::More tests => 4; |
7 |
BEGIN { use_ok('Nos') }; |
BEGIN { use_ok('Nos') }; |
8 |
|
|
9 |
ok(my $nos = new Nos('dsn' => 'dbi:Pg:dbname=notices'), "new"); |
ok(my $nos = new Nos('dsn' => 'dbi:Pg:dbname=notices'), "new"); |
10 |
|
|
11 |
ok($nos->add_member_to_list( list => 'My list', email => 'foo@example.com' ), "add_member_to_list"); |
ok($nos->add_member_to_list( list => 'My list', email => 'foo@example.com' ), "add_member_to_list"); |
12 |
|
|
13 |
|
ok($nos->add_message_to_list( list => 'My list', message => 'Subject: test\nJust a test' ), "add_message_to_list"); |