X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F085_load_class_gvstash_detect_bug.t;h=7a7faf82d72cf7d95ecd96f7e65d04e9fcd3de0b;hb=d65739b4429cbd77a5400b2ac8273af504fcf3da;hp=a3461bf228e152c0cf0fb983e550e71f5b2c7e3b;hpb=860f85abed70a4947fb698784aa94252324d770d;p=gitmo%2FClass-MOP.git diff --git a/t/085_load_class_gvstash_detect_bug.t b/t/085_load_class_gvstash_detect_bug.t index a3461bf..7a7faf8 100644 --- a/t/085_load_class_gvstash_detect_bug.t +++ b/t/085_load_class_gvstash_detect_bug.t @@ -1,21 +1,23 @@ use strict; use warnings; -use Test::More tests => 3; -use Test::Exception; +use Test::More; +use Test::Fatal; use Class::MOP; use lib 't/lib'; -lives_ok { +ok ! exception { Class::MOP::load_class('TestClassLoaded::Sub'); }; TestClassLoaded->can('a_method'); -lives_ok { +ok ! exception { Class::MOP::load_class('TestClassLoaded'); }; -lives_ok { +ok ! exception { TestClassLoaded->a_method; -} +}; + +done_testing;