1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

TestCase does not need to be loaded when loading the framework

This commit is contained in:
Aaron Patterson 2012-06-15 11:36:21 -07:00
parent 65df7b376a
commit 8b35a239fb
2 changed files with 13 additions and 2 deletions

View file

@ -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

View file

@ -148,6 +148,15 @@ module ApplicationTests
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 @@ module ApplicationTests
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