diff --git a/t/00_load.t b/t/00_load.t new file mode 100644 index 0000000..e6bee3c --- /dev/null +++ b/t/00_load.t @@ -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(); diff --git a/t/00_new.t b/t/00_new.t deleted file mode 100644 index e6b6920..0000000 --- a/t/00_new.t +++ /dev/null @@ -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();