protected Method

HpricotTestHelper.process_output

creates a new DocumentOutput object from the response body if hasn’t already been created. This is called automatically by the element and tag methods

Source Code

# File merb/test/hpricot.rb, line 130
def process_output
  if !@block && (@output.nil? || (@controller.body != @response_output))
    @output = HpricotTestHelper::DocumentOutput.new(@controller.body)
    @response_output = @controller.body  
  end
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.