Subject: | wish: add links_found method |
links_found( $links [, $msg ] )
would nicely do this:
ok( defined $mech->find_link(text => text), $msg )
and
links_found_like( $regex [, $msg ] )
would nicely do this:
ok( defined $mech->find_link(text_regex => $qr), $msg )
For that matter, regexes need not be explicitly noted. This could work by using ref() in the source of links_found():
my $links =
(
'index.html'
, qr/download/i
);
links_found( $links );
The same goes for all the method_name_[is|like] methods.
Best Regards,
Phil