--- trunk/t/01-Frey-Action.t 2009/01/05 23:12:22 927 +++ 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' ); @@ -54,7 +58,7 @@ diag $html if $debug; like( $html, qr/class/, 'required form field class' ); -ok( $o = Frey::Action->new( class => 'Frey::Introspect', params => { class => 'Frey' }, debug => $debug ), "new Frey::Introspect" ); +ok( $o = Frey::Action->new( class => 'Frey::Introspect', params => { request_url => '/', class => 'Frey' }, debug => $debug ), "new Frey::Introspect" ); ok( ! $o->params_form, 'params_form empty' ); - +diag $o->params_form if $o->params_form;