Skip to content

Instantly share code, notes, and snippets.

@phuesler
Created January 27, 2010 15:15
Show Gist options
  • Save phuesler/287915 to your computer and use it in GitHub Desktop.
Save phuesler/287915 to your computer and use it in GitHub Desktop.
def test_rescue_handler
get :not_authorized
assert_response :forbidden
end
def test_rescue_handler_string
get :not_authorized_raise_as_string
assert_response :forbidden
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment