Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6569 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Allow assert_response to use symbolic status codes

Reported by: kevinclark Assigned to: bitsweat, rick
Priority: normal Milestone: 1.2
Component: ActionPack Version: edge
Severity: normal Keywords: test, assertion, assert_response
Cc:

Description

ActionController::StatusCodes::SYMBOL_TO_STATUS_CODE allows the use of symbolic names for status codes (:unauthorized, :bad_gateway). This patch lets assert_response use those and preserves all existing functionality.

Attachments

assert_response_can_use_symbolic_status_codes.diff (1.2 kB) - added by kevinclark on 11/07/06 20:42:27.
Diff attached

Change History

11/07/06 20:42:27 changed by kevinclark

  • attachment assert_response_can_use_symbolic_status_codes.diff added.

Diff attached

11/07/06 21:44:28 changed by bitsweat

  • version set to edge.
  • component changed from ActiveRecord to ActionPack.
  • milestone changed from 1.x to 1.2.

11/07/06 21:45:11 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [5466]) assert_response supports symbolic status codes. Closes #6569.