Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix that Rails::InfoController tests

  • Loading branch information...
commit df8154c845f8fb251c58f1fd882cc221cfdcbbc2 1 parent ed0cb91
Pratik lifo authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/test/rails_info_controller_test.rb
4 railties/test/rails_info_controller_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.