{
package Foo;
-
sub foo {
use CSS::Declare;
- eval "color 'red'";
- [
+ return (
'*' => [ color 'red' ],
'tr, td' => [ margin '1px' ],
- ];
+ );
}
}
'Basic CSS::Declare usage'
);
-ok(!eval "color 'red'", 'Death on use of unimported tag');
+ok(!Foo->can('color'), 'Death on use of unimported tag');