public Method

HpricotTestHelper.element(css_query)

returns a raw Hpricot::Elem object for the first result found by the query

Source Code

# File merb/test/hpricot.rb, line 50
def element(css_query)
  process_output
  @output[css_query].first
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.