Stub out Dispatcher#log_failsafe_exception method to please the test gods.
This commit is contained in:
parent
93641f30b7
commit
745359a494
@ -37,11 +37,14 @@ def test_leaves_dependencies_after_dispatch_if_not_in_loading_mode
|
||||
dispatch
|
||||
end
|
||||
|
||||
# Stub out dispatch error logger
|
||||
class << Dispatcher
|
||||
def log_failsafe_exception(status, exception); end
|
||||
end
|
||||
|
||||
def test_failsafe_response
|
||||
CGI.expects(:new).raises('some multipart parsing failure')
|
||||
|
||||
ActionController::Routing::Routes.stubs(:reload)
|
||||
Dispatcher.any_instance.stubs(:log_failsafe_exception)
|
||||
Dispatcher.expects(:log_failsafe_exception)
|
||||
|
||||
assert_nothing_raised { dispatch }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user