Flowdock
method

assert_response

Importance_1
v1.0.0 - Show latest stable - 0 notes - Class: Test::Unit::Assertions
assert_response(type, message = nil) public

Asserts that the response is one of the following types:

  • :success: Status code was 200
  • :redirect: Status code was in the 300-399 range
  • :missing: Status code was 404
  • :error: Status code was in the 500-599 range

You can also pass an explicit status code number as the type, like assert_response(501)

Show source
Register or log in to add new notes.