提交 df8154c8 编写于 作者: P Pratik Naik

Fix that Rails::InfoController tests

上级 ed0cb91a
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册