Move and update new test -> load

This commit is contained in:
John Mertz 2022-11-28 21:01:29 -05:00
parent 5fcd03321c
commit 334073159c
2 changed files with 22 additions and 14 deletions

22
t/00_load.t Normal file
View File

@ -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();

View File

@ -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();