From: Karen Etheridge Date: Mon, 27 May 2013 01:04:43 +0000 (-0700) Subject: silence "Name "File::Spec::rel2abs" used only once: possible typo" X-Git-Tag: 1.008010^0 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Ftags%2F1.008010;hp=3b2c3de483a1566deb20d182a8ef3face05902c8;p=p5sagit%2Flocal-lib.git silence "Name "File::Spec::rel2abs" used only once: possible typo" --- diff --git a/t/classmethod.t b/t/classmethod.t index 385572a..f928fd5 100644 --- a/t/classmethod.t +++ b/t/classmethod.t @@ -17,6 +17,7 @@ is($c->resolve_empty_path('foo'), 'foo'); { +no warnings 'once'; local *File::Spec::rel2abs = sub { shift; 'FOO'.shift; }; is($c->resolve_relative_path('bar'),'FOObar');