1
0
Fork 0
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:
Yehuda Katz + Carl Lerche 2009-05-11 12:45:26 -07:00
parent 94ee9d2452
commit 6694bd46f5
4 changed files with 12 additions and 10 deletions

View file

@ -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", {})

View file

@ -39,6 +39,7 @@ module ActionController
@request.recycle!
@response.recycle!
@controller.response_body = nil
@html_document = nil
@request.env['REQUEST_METHOD'] = http_method

View file

@ -57,9 +57,6 @@ module ActionController
class UnknownController < ActionControllerError #:nodoc:
end
class UnknownAction < ActionControllerError #:nodoc:
end
class MissingFile < ActionControllerError #:nodoc:
end

View file

@ -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