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