X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcss_declare.t;h=f6815087d2d82db2148515366ae57d439eddf078;hb=65e03df094ba4c97b83364d50d61dd17a064d91c;hp=b9bcc2354b924bbae888c9b506850b40d8b4de52;hpb=1c4ebc891481e483357df1d325dd2dd1e4789109;p=catagits%2FWeb-Simple.git diff --git a/t/css_declare.t b/t/css_declare.t index b9bcc23..f681508 100644 --- a/t/css_declare.t +++ b/t/css_declare.t @@ -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');