提交 8b35a239 编写于 作者: A Aaron Patterson

TestCase does not need to be loaded when loading the framework

上级 65df7b37
......@@ -36,7 +36,7 @@ module ActionView
autoload :LookupContext
autoload :PathSet
autoload :Template
autoload :TestCase
autoload_under "renderer" do
autoload :Renderer
......@@ -73,6 +73,8 @@ module ActionView
end
end
autoload :TestCase
ENCODING_FLAG = '#.*coding[:=]\s*(\S+)[ \t]*'
end
......
......@@ -148,6 +148,15 @@ def teardown
assert AppTemplate::Application.config.allow_concurrency
end
test "initialize a threadsafe app" do
add_to_config <<-RUBY
config.threadsafe!
RUBY
require "#{app_path}/config/application"
assert AppTemplate::Application.initialize!
end
test "asset_path defaults to nil for application" do
require "#{app_path}/config/environment"
assert_equal nil, AppTemplate::Application.config.asset_path
......@@ -179,7 +188,7 @@ def teardown
require "#{app_path}/config/environment"
assert !ActionController.autoload?(:Caching)
assert !ActionView.autoload?(:AssetPaths)
end
test "filter_parameters should be able to set via config.filter_parameters" do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册