X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2Flocal-lib.git;a=blobdiff_plain;f=t%2Fclassmethod.t;fp=t%2Fclassmethod.t;h=6c001b74f19fd78f6b29f0477d823eae24b34a59;hp=c066ca195cbb40cbeda0407a57c4a23714fe02a7;hb=aa345cc9f401f5695ac8da70868b8f61ee30f1c7;hpb=e5cbb98481ba4e3e4812fa7dd46457f5719e8e55 diff --git a/t/classmethod.t b/t/classmethod.t index c066ca1..6c001b7 100644 --- a/t/classmethod.t +++ b/t/classmethod.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 4;; +use Test::More tests => 5; use File::Temp; use local::lib (); @@ -19,7 +19,10 @@ my $c = 'local::lib'; } { + my $warn = ''; + local $SIG{__WARN__} = sub { $warn .= $_[0] }; my $dir = File::Temp::tempdir(); $c->ensure_dir_structure_for("$dir/splat"); ok(-d "$dir/splat"); + like($warn, qr/^Attempting to create directory/); }