X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=rt%2Ft%2Fshredder%2F03plugin_summary.t;h=d450c70a25922c2dbd404cf008b1ae7832433eb9;hb=deb45cd5e78b1d35548047b003d85c4f45dc48e3;hp=30606af419f1bb91bea0db9969b36cd1babb755f;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git diff --git a/rt/t/shredder/03plugin_summary.t b/rt/t/shredder/03plugin_summary.t index 30606af41..d450c70a2 100644 --- a/rt/t/shredder/03plugin_summary.t +++ b/rt/t/shredder/03plugin_summary.t @@ -1,12 +1,11 @@ -#!/usr/bin/perl -w use strict; use warnings; use Test::Deep; use File::Spec; -use Test::More tests => 4; -use RT::Test (); +use Test::More tests => 4 + 1; # plus one for warnings check +use RT::Test nodb => 1; BEGIN { my $shredder_utils = RT::Test::get_relocatable_file('utils.pl', File::Spec->curdir()); @@ -15,7 +14,7 @@ BEGIN { use_ok('RT::Shredder::Plugin'); -my $plugin_obj = new RT::Shredder::Plugin; +my $plugin_obj = RT::Shredder::Plugin->new; isa_ok($plugin_obj, 'RT::Shredder::Plugin'); my ($status, $msg) = $plugin_obj->LoadByName('Summary'); ok($status, 'loaded summary plugin') or diag "error: $msg";