X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F000-recipes%2Fmoose_cookbook_meta_recipe3.t;h=b77d2932126c042af9122564eb5725af99e33422;hb=cfa6d970245f1bbc9330c0e4bb3342356a43ac16;hp=fe1ab2449808caa8328facbce7e78aee8833969b;hpb=85a83bedc70fd9308360199e2a57f768c9f67923;p=gitmo%2FMouse.git diff --git a/t/000-recipes/moose_cookbook_meta_recipe3.t b/t/000-recipes/moose_cookbook_meta_recipe3.t index fe1ab24..b77d293 100644 --- a/t/000-recipes/moose_cookbook_meta_recipe3.t +++ b/t/000-recipes/moose_cookbook_meta_recipe3.t @@ -42,9 +42,8 @@ $| = 1; my $dump = ''; - my %attributes = %{ $self->meta->get_attribute_map }; - for my $name ( sort keys %attributes ) { - my $attribute = $attributes{$name}; + for my $name ( sort $self->meta->get_attribute_list ) { + my $attribute = $self->meta->get_attribute($name); if ( $attribute->does('MyApp::Meta::Attribute::Trait::Labeled') && $attribute->has_label ) {