From: Guillermo Roditi Date: Fri, 18 Jul 2008 17:48:36 +0000 (+0000) Subject: new fialing test. yayy X-Git-Tag: 0_55~48 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=048b772567c7d7903d3b0e42553e5fe76d4c5e9c;p=gitmo%2FMoose.git new fialing test. yayy --- diff --git a/t/100_bugs/018_modifiers_n_changed_superclasses.t b/t/100_bugs/018_modifiers_n_changed_superclasses.t new file mode 100644 index 0000000..015baf4 --- /dev/null +++ b/t/100_bugs/018_modifiers_n_changed_superclasses.t @@ -0,0 +1,28 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Test::More tests => 2; + +BEGIN { + use_ok('Moose'); +} + +{ + package Foo; + use Moose; + sub foo { 'foo' } + + package Bar; + use Moose; + sub foo { 'bar' } + + package FooBar; + use Moose; + extends 'Foo'; + around foo => sub{ shift->(@_) }; +} + +FooBar->meta->superclasses('Bar'); +is(FooBar->foo, 'bar', 'method modified changed along with metaclass');