Class Merb::Test::Rspec::ViewMatchers::HasTag
In: lib/merb-core/test/matchers/view_matchers.rb
Parent: Object

Methods

Public Class methods

Parameters

tag<~to_s>:The tag to look for.
attributes<Hash>:Attributes for the tag (see below).

Public Instance methods

Returns

String:Class for the error tag.

Returns

String:Class for the error tag.

Returns

String:Class selector for use in element queries.

Returns

String:The failure message.

Returns

String:ID for the error tag.

Returns

String:ID selector for use in element queries.

Returns

String:The failure message to be displayed in negative matches within the have_tag block.

Parameters

stringlike<Hpricot::Elem, StringIO, String>:The thing to search in.
&blk:An optional block for searching in child elements using with_tag.

Returns

Boolean:True if there was at least one match.

Returns

String:The failure message to be displayed in negative matches.

Returns

String:The complete selector for element queries.

Returns

String:The tag used in failure messages.

Search for a child tag within a have_tag block.

Parameters

tag<~to_s>:The tag to look for.
attributes<Hash>:Attributes for the tag (see below).

[Validate]