public Method

HpricotTestHelper.elements(css_query)

returns an array of Hpricot::Elem objects for the results found by the query

Source Code

# File merb/test/hpricot.rb, line 57
def elements(css_query)
  process_output
  Hpricot::Elements[*css_query.split(",").map(&:strip).map do |query|
    @output[query]
  end.flatten]
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.