Skip to content

Commit

Permalink
Fix that Rails::InfoController tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Jun 5, 2008
1 parent ed0cb91 commit df8154c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions railties/test/rails_info_controller_test.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit df8154c

Please sign in to comment.