diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-06-05 20:41:22 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-06-05 20:41:22 +0100 |
commit | df8154c845f8fb251c58f1fd882cc221cfdcbbc2 (patch) | |
tree | 094ead2ac8f848ba2747f22d3a7b0ba96fa5502f | |
parent | ed0cb91a830f317e3a8192a90294c1005f6156c2 (diff) | |
download | rails-df8154c845f8fb251c58f1fd882cc221cfdcbbc2.tar.gz rails-df8154c845f8fb251c58f1fd882cc221cfdcbbc2.tar.bz2 rails-df8154c845f8fb251c58f1fd882cc221cfdcbbc2.zip |
Fix that Rails::InfoController tests
-rw-r--r-- | railties/test/rails_info_controller_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/test/rails_info_controller_test.rb b/railties/test/rails_info_controller_test.rb index 17c7d9deea..e1872ebf33 100644 --- a/railties/test/rails_info_controller_test.rb +++ b/railties/test/rails_info_controller_test.rb @@ -30,6 +30,8 @@ class Rails::InfoControllerTest < Test::Unit::TestCase @controller = Rails::InfoController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new + + ActionController::Base.consider_all_requests_local = true end def test_rails_info_properties_table_rendered_for_local_request @@ -41,6 +43,8 @@ class Rails::InfoControllerTest < Test::Unit::TestCase def test_rails_info_properties_error_rendered_for_non_local_request Rails::InfoController.local_request = false + ActionController::Base.consider_all_requests_local = false + get :properties assert_tag :tag => 'p' assert_response 500 |