Class Merb::Test::ViewHelper::DocumentOutput
In: lib/merb-core/test/helpers/view_helper.rb
Parent: Object

Small utility class for working with the Hpricot parser class

Methods

[]   content_for   content_for_all   new  

Public Class methods

Parameters

response_body<String>:The response body to parse with Hpricot.

Public Instance methods

Parameters

css_query<String>:A CSS query to find the elements for.

Returns

Hpricot::Elements:All tags matching the query.

Parameters

css_query<String>:A CSS query to find the element for, e.g. "ul.links".

Returns

String:The content of the first tag matching the query.

Parameters

css_query<String>:A CSS query to find the elements for.

Returns

Array[String]:Content of all tags matching the query.

[Validate]