aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-01-07 16:37:32 -0800
committerYehuda Katz <wycats@gmail.com>2009-01-09 00:14:28 -0800
commitbb03719943ee5f8e357323f35aa7ffd083938fc2 (patch)
treed1540cf9f8e720752eca055b6e2d99cbafca382b
parent431e696b899dbc48afdfb842af73e8f75bf6b08c (diff)
downloadrails-bb03719943ee5f8e357323f35aa7ffd083938fc2.tar.gz
rails-bb03719943ee5f8e357323f35aa7ffd083938fc2.tar.bz2
rails-bb03719943ee5f8e357323f35aa7ffd083938fc2.zip
Fix test broken by test process changes
-rw-r--r--railties/test/error_page_test.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/railties/test/error_page_test.rb b/railties/test/error_page_test.rb
index 844f889aad..f819e468e8 100644
--- a/railties/test/error_page_test.rb
+++ b/railties/test/error_page_test.rb
@@ -1,6 +1,6 @@
require 'abstract_unit'
require 'action_controller'
-require 'action_controller/test_process'
+require 'action_controller/test_case'
RAILS_ENV = "test"
CURRENT_DIR = File.expand_path(File.dirname(__FILE__))
@@ -22,13 +22,10 @@ ActionController::Routing::Routes.draw do |map|
map.connect ':controller/:action/:id'
end
-class ErrorPageControllerTest < Test::Unit::TestCase
+class ErrorPageControllerTest < ActionController::TestCase
def setup
- @controller = ErrorPageController.new
- @request = ActionController::TestRequest.new
- @response = ActionController::TestResponse.new
-
ActionController::Base.consider_all_requests_local = false
+ rescue_action_in_public!
end
def test_500_error_page_instructs_system_administrator_to_check_log_file
@@ -38,6 +35,6 @@ class ErrorPageControllerTest < Test::Unit::TestCase
end
get :crash
expected_log_file = "#{RAILS_ENV}.log"
- assert_not_nil @response.body.index(expected_log_file)
+ assert_not_nil @response.body.index(expected_log_file), @response.body
end
end