mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Aliased AbstractController::ActionNotFound to ActionController::UnknownAction
This commit is contained in:
parent
94ee9d2452
commit
6694bd46f5
4 changed files with 12 additions and 10 deletions
|
@ -3,6 +3,9 @@ module ActionController
|
|||
|
||||
# Temporary hax
|
||||
setup do
|
||||
::ActionController::UnknownAction = ::AbstractController::ActionNotFound
|
||||
::ActionController::DoubleRenderError = ::AbstractController::DoubleRenderError
|
||||
|
||||
cattr_accessor :session_options
|
||||
self.send(:class_variable_set, "@@session_options", {})
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ module ActionController
|
|||
|
||||
@request.recycle!
|
||||
@response.recycle!
|
||||
@controller.response_body = nil
|
||||
|
||||
@html_document = nil
|
||||
@request.env['REQUEST_METHOD'] = http_method
|
||||
|
|
|
@ -57,9 +57,6 @@ module ActionController
|
|||
class UnknownController < ActionControllerError #:nodoc:
|
||||
end
|
||||
|
||||
class UnknownAction < ActionControllerError #:nodoc:
|
||||
end
|
||||
|
||||
class MissingFile < ActionControllerError #:nodoc:
|
||||
end
|
||||
|
||||
|
|
|
@ -1680,11 +1680,12 @@ class EtagRenderTest < ActionController::TestCase
|
|||
|
||||
@request.if_none_match = expected_etag
|
||||
get :render_hello_world_from_variable
|
||||
assert_equal "304 Not Modified", @response.status
|
||||
assert_equal 304, @response.status.to_i
|
||||
|
||||
@response = ActionController::TestResponse.new
|
||||
@request.if_none_match = "\"diftag\""
|
||||
get :render_hello_world_from_variable
|
||||
assert_equal "200 OK", @response.status
|
||||
assert_equal 200, @response.status.to_i
|
||||
end
|
||||
|
||||
def render_with_404_shouldnt_have_etag
|
||||
|
|
Loading…
Reference in a new issue