From: Matt S Trout Date: Fri, 15 May 2009 01:59:57 +0000 (+0100) Subject: move monger.t to checking module loading X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=315f380be793764ed889a4a5c3337d02bc3cccbd;p=engit%2FIron-Munger.git move monger.t to checking module loading --- diff --git a/t/monger.t b/t/monger.t index f1f3dab..7c8c847 100644 --- a/t/monger.t +++ b/t/monger.t @@ -1,11 +1,14 @@ use strict; use warnings; use Test::More qw(no_plan); -use aliased 'IronMunger::Monger'; -use aliased 'IronMunger::Post'; use autobox; use autobox::DateTime::Duration; +BEGIN { + use_ok aliased => 'IronMunger::Monger'; + use_ok aliased => 'IronMunger::Post'; +} + my $monger = Monger->new( posts => [ map { Post->new(at => $_->days->ago) } (2, 10) ] );