X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ftodo-forms.t;h=a1bed00c13cdcbf3744cb22d68381ee12cb3eda2;hb=2daa653a58384970b813ea933d125c4a88dad853;hp=ab8dcd772ad51d7a588d797fc41ea33f3e9f7e74;hpb=a4ffdd456d97ad50f05d803977c3f891ae84d052;p=catagits%2FHTML-Zoom.git diff --git a/t/todo-forms.t b/t/todo-forms.t index ab8dcd7..a1bed00 100644 --- a/t/todo-forms.t +++ b/t/todo-forms.t @@ -16,15 +16,15 @@ my @fields = ( my $h = $zoom->select('.myform')->repeat_content([ map { my $field = $_; sub { $_->select('label') - ->add_attribute( for => $field->{id} ) + ->add_to_attribute( for => $field->{id} ) ->then ->replace_content( $field->{label} ) ->select('input') - ->add_attribute( name => $field->{name} ) + ->add_to_attribute( name => $field->{name} ) ->then - ->add_attribute( type => $field->{type} ) + ->add_to_attribute( type => $field->{type} ) ->then - ->add_attribute( value => $field->{value} ) + ->add_to_attribute( value => $field->{value} ) } } @fields ])->to_html;