public Method

TestResponseBehavior.response_code

the response code of the request

Source Code

# File action_controller/test_process.rb, line 159
def response_code
  headers['Status'][0,3].to_i rescue 0
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.