X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=blobdiff_plain;f=t%2Factions.t;fp=t%2Factions.t;h=8805a558a2692364308ad991eb6bbb33b0f2a626;hp=6b7c12c1a7ae8bf564911a7a384e58bbf3bfdf4b;hb=95dcb071e6789c2b985c36467674db31f9b35c39;hpb=2d0662c077bfd275682acfad25d407e0724ec34f diff --git a/t/actions.t b/t/actions.t index 6b7c12c..8805a55 100644 --- a/t/actions.t +++ b/t/actions.t @@ -117,6 +117,14 @@ is( 'remove attribute on non existing attribute' ); +($expect = $tmpl) =~ s/class="main"/class=""/; + +is( + run_for { $_->remove_from_attribute({ class => 'main' }) }, + $expect, + 'remove name from attribute' +); + ($expect = $tmpl) =~ s/ class="main"//; is(