Move and update new test -> load
This commit is contained in:
parent
5fcd03321c
commit
334073159c
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
# Basic smoke test for initializing module
|
||||
|
||||
use Test::More;
|
||||
|
||||
BEGIN {
|
||||
use lib 'lib/';
|
||||
use_ok( Mail::SpamAssassin::KeywordRuleGenerator );
|
||||
};
|
||||
|
||||
ok (my $kw = Mail::SpamAssassin::KeywordRuleGenerator->new(), "Create default object");
|
||||
|
||||
my %args = (
|
||||
id => $id,
|
||||
debug => 1,
|
||||
single_outfile => 1
|
||||
);
|
||||
|
||||
ok (my $kw = Mail::SpamAssassin::KeywordRuleGenerator->new( \%args ), "Create object with attributes");
|
||||
|
||||
done_testing();
|
14
t/00_new.t
14
t/00_new.t
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use Test::More;
|
||||
|
||||
BEGIN {
|
||||
use lib 'lib/';
|
||||
use_ok( Mail::SpamAssassin::KeywordRuleGenerator );
|
||||
};
|
||||
|
||||
my $id = '00';
|
||||
|
||||
ok (my $kw = Mail::SpamAssassin::KeywordRuleGenerator->new($id), "Create object");
|
||||
|
||||
done_testing();
|
Loading…
Reference in New Issue