From: Shawn M Moore Date: Sun, 3 May 2009 21:17:41 +0000 (-0400) Subject: Make sure wrapping twice works X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=de63df59ae120441faa40ae1c8cbe00cd015c1ea;p=gitmo%2FPerl-Critic-Dynamic-Moose.git Make sure wrapping twice works --- diff --git a/t/DynamicMoose/RequireMethodModifiers.run b/t/DynamicMoose/RequireMethodModifiers.run index ad9b1d1..31816b7 100644 --- a/t/DynamicMoose/RequireMethodModifiers.run +++ b/t/DynamicMoose/RequireMethodModifiers.run @@ -257,6 +257,25 @@ sub foo {} #----------------------------------------------------------------------------- +## name Wrapping an implicit override twice +## failures 1 +## cut + +package Parent; +use Moose; + +sub foo {} + +package Child; +use Moose; +extends 'Parent'; + +before foo => sub {}; +before foo => sub {}; +sub foo {} + +#----------------------------------------------------------------------------- + ## name Imported functions ## failures 0 ## cut