X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fselectors.t;h=09875ad2d543e7aad232e7da24831abbf9535562;hb=bd4e2ca023a71bbc87d89bb52e7ad7e9b417a98d;hp=46e8439dfc1caf24aaa4e0c3e85b169c85d11b3a;hpb=c9448e2171d246c09274ccb5585cf62573d57089;p=catagits%2FHTML-Zoom.git diff --git a/t/selectors.t b/t/selectors.t index 46e8439..09875ad 100644 --- a/t/selectors.t +++ b/t/selectors.t @@ -96,18 +96,16 @@ ok( check_select( '[prop=moo]'), '[attr=bar]' ); is( check_select('span[class=career],[prop=moo]'), 2, 'Multiple selectors: el[attr=bar],[attr=foo]'); -TODO:{ - local $TODO = 'Fix selector error messages'; - # selector parse error test: - eval{ - HTML::Zoom->from_html('') - ->select('[att=bar') - ->replace_content('cats') + +# selector parse error test: +eval{ + HTML::Zoom->from_html('') + ->select('[att=bar') + ->replace_content('cats') ->to_html; - }; - like( $@, qr/Error parsing dispatch specification/, - 'Malformed attribute selector results in a helpful error' ); }; +like( $@, qr/Error parsing dispatch specification/, + 'Malformed attribute selector ([att=bar) results in a helpful error' ); =pod