Skip to content

Commit

Permalink
Require HTML::Selector::XPath 0.06 for reals.
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jul 17, 2011
1 parent 0c6b8cd commit 7482ced
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Revision history for Perl extension Test::XPath.
0.15
- Require XML::LibXML 1.70, as that seems to be the first version to
offer `set_option()`.
- Make sure that HTML::Selector::XPath 0.06 or higher is installed
before allowing use of CSS selectors. Should fix some test failures
from cpan-testers.

0.14 2011-06-29T18:31:39
- The constructor now croaks instead of carping when no XML or HTML
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/XPath.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sub new {
if (ref $f eq 'CODE') {
$f;
} elsif ($f eq 'css_selector') {
eval 'require HTML::Selector::XPath';
eval 'use HTML::Selector::XPath 0.06';
die 'Please install HTML::Selector::XPath to use CSS selectors'
if $@;
sub {
Expand Down
2 changes: 1 addition & 1 deletion t/css_selector.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use Test::More;
use File::Spec;

BEGIN {
eval 'require HTML::Selector::XPath';
eval 'use HTML::Selector::XPath 0.06';
plan skip_all => 'Install HTML::Selector::XPath to use CSS selectors'
if $@;
plan tests => 16;
Expand Down

0 comments on commit 7482ced

Please sign in to comment.