X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F019-handles.t;h=e48511a18b5e2b926f34ae38ad01c6bd9a44907b;hb=63d74d7adc05bdf93288048a851adaefd6ffc8d3;hp=6d265be1112d8c4eb2e0837d2e130cae44388058;hpb=c3398f5bd45f2851b7cd40ca9823bcf7d2378469;p=gitmo%2FMouse.git diff --git a/t/019-handles.t b/t/019-handles.t index 6d265be..e48511a 100644 --- a/t/019-handles.t +++ b/t/019-handles.t @@ -42,25 +42,25 @@ do { has error => ( handles => "string", ); - } qr/You must pass a HASH or ARRAY to handles/; + } qr/Unable to canonicalize the 'handles' option with string/; ::throws_ok { has error2 => ( handles => \"ref_to_string", ); - } qr/You must pass a HASH or ARRAY to handles/; + } qr/Unable to canonicalize the 'handles' option with SCALAR\(\w+\)/; ::throws_ok { has error3 => ( handles => qr/regex/, ); - } qr/You must pass a HASH or ARRAY to handles/; + } qr/Unable to canonicalize the 'handles' option with \(\?-xism:regex\)/; ::throws_ok { has error4 => ( handles => sub { "code" }, ); - } qr/You must pass a HASH or ARRAY to handles/; + } qr/Unable to canonicalize the 'handles' option with CODE\(\w+\)/; }; can_ok(Class => qw(person has_person person_name person_age name age quid)); @@ -92,7 +92,7 @@ is($object->me->age, 21, "me->age"); is_deeply( $object->meta->get_attribute('me')->handles, - { name => 'name', age => 'age' }, + [ 'name', 'age' ], "correct handles layout for 'me'", );