X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Factions.t;h=584ec36fa31f1b339b1ad8e428ede7e4f11c4d97;hb=8af6dead371dda2793a0649592cfa0dcf905e5bc;hp=5e9bf1621f079f3d275b8d49ed6887f770a2a16d;hpb=d80786d07e9746f71b9b93554ce38f62ad1787e6;p=catagits%2FHTML-Zoom.git diff --git a/t/actions.t b/t/actions.t index 5e9bf16..584ec36 100644 --- a/t/actions.t +++ b/t/actions.t @@ -67,7 +67,7 @@ is( ($expect = $tmpl) =~ s/class="main"/class="main foo"/; is( - run_for { $_->add_attribute({ name => 'class', value => 'foo' }) }, + run_for { $_->add_to_attribute({ name => 'class', value => 'foo' }) }, $expect, 'add attribute on existing attribute' ); @@ -75,7 +75,7 @@ is( ($expect = $tmpl) =~ s/class="main"/class="main" foo="bar"/; is( - run_for { $_->add_attribute({ name => 'foo', value => 'bar' }) }, + run_for { $_->add_to_attribute({ name => 'foo', value => 'bar' }) }, $expect, 'add attribute on non existing attribute' ); @@ -268,12 +268,12 @@ is( $_->repeat_content( [ sub { - HTML::Zoom::CodeStream->from_array( + HTML::Zoom::ArrayStream->new({ array => [ (filter filter($_ => '.name' => $r_content->('mst')) => '.career' => $r_content->('Chainsaw Wielder')), - HTML::Zoom::CodeStream->from_array(@between) - )->flatten + HTML::Zoom::ArrayStream->new({ array => \@between }) + ] })->flatten }, sub { filter