Add Moose::Meta::Method::Delegation and use it for delegation methods
[gitmo/Moose.git] / t / 020_attributes / 010_attribute_delegation.t
index 91bcf17..6eaf355 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 84;
+use Test::More tests => 85;
 use Test::Exception;
 
 
@@ -37,6 +37,8 @@ isa_ok($bar, 'Bar');
 ok($bar->foo, '... we have something in bar->foo');
 isa_ok($bar->foo, 'Foo');
 
+isa_ok(Bar->meta->get_method('foo_bar'), 'Moose::Meta::Method::Delegation');
+
 is($bar->foo->bar, 10, '... bar->foo->bar returned the right default');
 
 can_ok($bar, 'foo_bar');