Release commit for 0.024
[catagits/Web-Simple.git] / t / css_declare.t
index b9bcc23..f681508 100644 (file)
@@ -4,14 +4,12 @@ use Test::More qw(no_plan);
 {
 
   package Foo;
-
   sub foo {
     use CSS::Declare;
-    eval "color 'red'";
-    [
+    return (
        '*' => [ color 'red' ],
        'tr, td' => [ margin '1px' ],
-    ];
+    );
   }
 }
 
@@ -21,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');