better test for unimporting
Arthur Axel 'fREW' Schmidt [Thu, 3 Dec 2009 05:14:11 +0000 (23:14 -0600)]
t/css_declare.t

index 1427940..f681508 100644 (file)
@@ -4,7 +4,6 @@ use Test::More qw(no_plan);
 {
 
   package Foo;
-
   sub foo {
     use CSS::Declare;
     return (
@@ -20,5 +19,5 @@ is(
   'Basic CSS::Declare usage'
 );
 
-ok(!eval "color 'red'", 'Death on use of unimported tag');
+ok(!Foo->can('color'), 'Death on use of unimported tag');