Module Merb::Test::ViewHelper
In: lib/merb-core/test/helpers/view_helper.rb

Methods

Classes and Modules

Class Merb::Test::ViewHelper::DocumentOutput

Public Instance methods

Parameters

css_query<String>:A CSS query to find the element for.
output<DocumentOutput>:The output to look for the element in. Defaults to process_output.

Returns

Hpricot::Elem:The first tag matching the query.

Parameters

css_query<String>:A CSS query to find the elements for.
output<DocumentOutput>:The output to look for the elements in. Defaults to process_output.

Returns

Array[Hpricot::Elem]:All tags matching the query.

Parameters

css_query<String>:A CSS query to find the elements for.
text<String, Regexp>:A pattern to match tag contents for.
output<DocumentOutput>:The output to look for the elements in. Defaults to process_output.

Returns

Array[Hpricot::Elem]:All tags matching the query and pattern.

Parameters

css_query<String>:A CSS query to find the element for.
output<DocumentOutput>:The output to look for the element in. Defaults to process_output.

Returns

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

Parameters

css_query<String>:A CSS query to find the elements for.
output<DocumentOutput>:The output to look for the element in. Defaults to process_output.

Returns

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

Protected Instance methods

Returns

DocumentOutput:Document output from the response body.

[Validate]