Module

HpricotTestHelper

There's no documentation for this item.

Classes
DocumentOutput small utility class for working with the Hpricot parser class
Public Methods
assert_elements
element returns a raw Hpricot::Elem object for the first result found by the query
elements returns an array of Hpricot::Elem objects for the results found by the query
get_elements
tag returns the inner content of the first tag found by the css query
tags returns an array of tag contents for all of the tags found by the css query
Protected Methods
process_output creates a new DocumentOutput object from the response body if hasn’t already been created. This is called automatically by the element and tag methods
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.