enable warnings locally, rather than globally
[p5sagit/local-lib.git] / t / classmethod.t
index 19868b5..1b27a7f 100644 (file)
@@ -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');
 
@@ -30,6 +32,4 @@ $c->ensure_dir_structure_for('t/var/splat');
 
 ok(-d 't/var/splat');
 
-ok(-f 't/var/splat/.modulebuildrc');
-
 }