public Method

HpricotTestHelper.get_elements(css_query, text)

There's no documentation for this item.

Source Code

# File merb/test/hpricot.rb, line 64
def get_elements css_query, text
  els = elements(css_query)
  case text
    when String then els.reject! {|t| !t.should_contain(text) }
    when Regexp then els.reject! {|t| !t.should_match(text) }
  end
  els
end
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.