--- trunk/t/01-Frey-Action.t 2009/01/05 23:14:07 928 +++ trunk/t/01-Frey-Action.t 2009/01/09 21:30:06 975 @@ -4,7 +4,7 @@ my $debug = @ARGV ? 1 : 0; -use Test::More tests => 26; +use Test::More tests => 28; use lib 'lib'; use Data::Dump qw/dump/; @@ -19,6 +19,10 @@ diag ref( $required ) if $debug; isa_ok( $required, 'ARRAY', 'required' ); +ok( $required = $o->required( as_hash => 1 ), 'required as_hash' ); +diag dump $required; +isa_ok( $required, 'HASH', 'hash' ); + ok( my $attributes = $o->attributes, 'attributes' ); diag dump( $attributes ) if $debug; is_deeply( $attributes, ["uri", "feed", "title"], 'attributes' );