Hi,

I sometimes find myself having to test attribute values and would like to 
see something in Test::Mojo that lets you pass a selector, attrname, and 
expected value.  I've been using 
$t->tap(sub{TEST(shift->tx->res->dom->at(SELECTOR)->attr(ATTR), EXPECTED, 
DESCR)}) which works fine, but is a tad verbose.

Is there a better/lazier way to do this? 

If not, is there any interest in adding attribute testing as a feature? 
E.g. new methods: attr_is, attr_isnt, attr_like, attr_unlike?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to