aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/show_exceptions_test.rb
diff options
context:
space:
mode:
authorlest <just.lest@gmail.com>2011-11-22 13:34:13 +0300
committerlest <just.lest@gmail.com>2011-11-22 13:34:13 +0300
commit5bcd119b8d9bb6d88c949956de1ce13c2673b877 (patch)
treee64669915cd38db390c4c0ceaf5f87428a36b533 /actionpack/test/controller/show_exceptions_test.rb
parentc6d6b28bb4e105fd0ae7a0ef3c7df4bc416bd397 (diff)
downloadrails-5bcd119b8d9bb6d88c949956de1ce13c2673b877.tar.gz
rails-5bcd119b8d9bb6d88c949956de1ce13c2673b877.tar.bz2
rails-5bcd119b8d9bb6d88c949956de1ce13c2673b877.zip
move show_detailed_exceptions? to Rescue module
Diffstat (limited to 'actionpack/test/controller/show_exceptions_test.rb')
-rw-r--r--actionpack/test/controller/show_exceptions_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/show_exceptions_test.rb b/actionpack/test/controller/show_exceptions_test.rb
index c328a42e89..39245e9574 100644
--- a/actionpack/test/controller/show_exceptions_test.rb
+++ b/actionpack/test/controller/show_exceptions_test.rb
@@ -1,7 +1,7 @@
require 'abstract_unit'
module ShowExceptions
- class ShowExceptionsController < ActionController::Metal
+ class ShowExceptionsController < ActionController::Base
use ActionDispatch::ShowExceptions
def boom
@@ -27,7 +27,7 @@ module ShowExceptions
end
test 'show diagnostics from a remote ip when consider_all_requests_local is true' do
- Rails.stubs(:application).returns stub(:config => stub(:consider_all_requests_local => true))
+ ShowExceptionsController.any_instance.stubs(:consider_all_requests_local).returns(true)
@app = ShowExceptionsController.action(:boom)
self.remote_addr = '208.77.188.166'
get '/'