aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-05-17 12:24:42 -0500
committerJoshua Peek <josh@joshpeek.com>2009-05-17 12:24:59 -0500
commit8118fca9beec675fba19395e7d1027eaa4b5703a (patch)
treeba49bc63cb8bd1e2dbb222f59bfb023880ecf553 /actionpack/test/controller
parentc3319504f066c9362b4b30e1e15bbd1cadde8e25 (diff)
downloadrails-8118fca9beec675fba19395e7d1027eaa4b5703a.tar.gz
rails-8118fca9beec675fba19395e7d1027eaa4b5703a.tar.bz2
rails-8118fca9beec675fba19395e7d1027eaa4b5703a.zip
Merge Failsafe middleware into ShowExceptions
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/rescue_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/test/controller/rescue_test.rb b/actionpack/test/controller/rescue_test.rb
index f745926b20..490a4ff3b3 100644
--- a/actionpack/test/controller/rescue_test.rb
+++ b/actionpack/test/controller/rescue_test.rb
@@ -1,5 +1,19 @@
require 'abstract_unit'
+module ActionDispatch
+ class ShowExceptions
+ private
+ def public_path
+ "#{FIXTURE_LOAD_PATH}/public"
+ end
+
+ # Silence logger
+ def logger
+ nil
+ end
+ end
+end
+
class RescueController < ActionController::Base
class NotAuthorized < StandardError
end