X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=t%2F000-recipes%2F002_schwartz_tutorial.t;h=c23715ec630c7f98d22751545da332b90833353a;hp=cad54b43f0e0d30493d060ed532c252fcdeaabe0;hb=49a56bbafc81e4d50e4a95a65f987a448dfe5ecc;hpb=0eaf53c27a3ef11c0a515a91df229d10bf29b58d diff --git a/t/000-recipes/002_schwartz_tutorial.t b/t/000-recipes/002_schwartz_tutorial.t index cad54b4..c23715e 100755 --- a/t/000-recipes/002_schwartz_tutorial.t +++ b/t/000-recipes/002_schwartz_tutorial.t @@ -10,6 +10,17 @@ use strict; use warnings; +use Test::More; + +BEGIN { + plan skip_all => + "This test requires Class::Method::Modifiers or Class::Method::Modifiers::Fast" + unless eval { + require Class::Method::Modifiers::Fast; + } or eval { + require Class::Method::Modifiers; + }; +} # functions to capture the output of the tutorial our $DUMMY_STDOUT = ""; @@ -105,7 +116,7 @@ no Mouse; ###################################################################### # Now the tests package main; -use Test::More tests => 5; +plan tests => 5; #use Horse; my $talking = Horse->new(name => 'Mr. Ed');