File: sendmail.t

package info (click to toggle)
libmime-lite-perl 3.033-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 660 kB
  • sloc: perl: 1,848; makefile: 9
file content (16 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl

use lib "lib", "t";
use MIME::Lite;
use Test::More tests => 2;

use_ok('MIME::Lite') or exit 1;

# set up dummy sendmail args.
MIME::Lite->send('sendmail', '/foo/bar/sendmail -x -y -z');

# retrieve the settings.
my @prev = MIME::Lite->send(sendmail => '/foo/bar/sendmail');

is_deeply \@prev, ['sendmail', '/foo/bar/sendmail -x -y -z'],
    'sendmail args updated';