projects
/
p5sagit/local-lib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
enable warnings locally, rather than globally
[p5sagit/local-lib.git]
/
t
/
classmethod.t
diff --git
a/t/classmethod.t
b/t/classmethod.t
index
385572a
..
1b27a7f
100644
(file)
--- a/
t/classmethod.t
+++ b/
t/classmethod.t
@@
-1,7
+1,8
@@
use strict;
use warnings;
-use Test::More 'no_plan';
+use Test::More tests => 4;;
+
use local::lib ();
@@
-17,6
+18,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');