Skip to content
Browse files

Fix that Rails::InfoController tests

  • Loading branch information...
1 parent fc2fbe5 commit ea1c1f2d2840ba733f4c1818230ecdae6649eafa @lifo lifo committed with jeremy Jun 5, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/test/rails_info_controller_test.rb
View
4 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 ea1c1f2

Please sign in to comment.
Something went wrong with that request. Please try again.