/[notice-sender]/trunk/t/1_nos.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/1_nos.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/t/1_load.t revision 20 by dpavlin, Sun May 15 21:19:26 2005 UTC trunk/t/1_nos.t revision 31 by dpavlin, Mon May 16 22:04:40 2005 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 1;  use Test::More tests => 5;
 BEGIN { use_ok('Notices') };  
7    
8    BEGIN { use_ok('Nos') };
9    
10    ok(my $nos = new Nos('dsn' => 'dbi:Pg:dbname=notices'), "new");
11    
12    ok($nos->_add_list( list => 'My list', email => 'my-list@example.com'), "_add_list");
13    
14    ok($nos->add_member_to_list( list => 'My list', email => 'foo@example.com' ), "add_member_to_list");
15    
16    ok($nos->add_message_to_list( list => 'My list', message => 'Subject: test\nJust a test' ), "add_message_to_list");

Legend:
Removed from v.20  
changed lines
  Added in v.31

  ViewVC Help
Powered by ViewVC 1.1.26