Permalink
Browse files

Fix that Rails::InfoController tests

  • Loading branch information...
1 parent ed0cb91 commit df8154c845f8fb251c58f1fd882cc221cfdcbbc2 @lifo lifo committed Jun 5, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/test/rails_info_controller_test.rb
@@ -30,6 +30,8 @@ def setup
@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 @@ def test_rails_info_properties_table_rendered_for_local_request
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

0 comments on commit df8154c

Please sign in to comment.