Skip to content
This repository
Browse code

Fix that Rails::InfoController tests

  • Loading branch information...
commit df8154c845f8fb251c58f1fd882cc221cfdcbbc2 1 parent ed0cb91
Pratik authored
4  railties/test/rails_info_controller_test.rb
@@ -30,6 +30,8 @@ def setup
30 30
     @controller = Rails::InfoController.new
31 31
     @request    = ActionController::TestRequest.new
32 32
     @response   = ActionController::TestResponse.new
  33
+
  34
+    ActionController::Base.consider_all_requests_local = true
33 35
   end
34 36
 
35 37
   def test_rails_info_properties_table_rendered_for_local_request
@@ -41,6 +43,8 @@ def test_rails_info_properties_table_rendered_for_local_request
41 43
   
42 44
   def test_rails_info_properties_error_rendered_for_non_local_request
43 45
     Rails::InfoController.local_request = false
  46
+    ActionController::Base.consider_all_requests_local = false
  47
+
44 48
     get :properties
45 49
     assert_tag :tag => 'p'
46 50
     assert_response 500

0 notes on commit df8154c

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