renamed helper_type => _helper_type
[gitmo/Moose.git] / t / 070_attribute_helpers / 010_array_from_role.t
index 667ad16..b72ec51 100644 (file)
@@ -20,7 +20,7 @@ BEGIN {
     use Moose::Role;
 
     has 'options' => (
-        metaclass => 'Collection::Array',
+        traits    => [ 'Collection::Array' ],
         is        => 'ro',
         isa       => 'ArrayRef[Foo]',
     );
@@ -29,11 +29,11 @@ BEGIN {
     use Moose::Role;
 
     has 'stuff' => (
-        metaclass => 'Collection::Array',
+        traits    => [ 'Collection::Array' ],
         is        => 'ro',
         isa       => 'ArrayRef',
-        provides  => {
-            'get' => 'get_stuff'
+        handles   => {
+            get_stuff => 'get',
         }
     );