aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/initializers
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-06-21 01:46:24 +0200
committerXavier Noria <fxn@hashref.com>2010-06-21 01:46:24 +0200
commitb311dbb0ba2f3679a21fd7cb53b867c580e1e809 (patch)
tree62a1f0dd16cb25f93a42bd2ccfd2209599a157d0 /railties/test/application/initializers
parent7b7cedcb8d53110492e7d51405986f3e8e899fa4 (diff)
downloadrails-b311dbb0ba2f3679a21fd7cb53b867c580e1e809.tar.gz
rails-b311dbb0ba2f3679a21fd7cb53b867c580e1e809.tar.bz2
rails-b311dbb0ba2f3679a21fd7cb53b867c580e1e809.zip
Revert "files in the lib directory are no longer autoloaded"
This patch is not consistent since it leaves similar directories in load_paths, needs more thought. This reverts commit b5fe014fdcc285f3bcb8779c4f7cfbc5a820856f.
Diffstat (limited to 'railties/test/application/initializers')
-rw-r--r--railties/test/application/initializers/load_path_test.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/test/application/initializers/load_path_test.rb b/railties/test/application/initializers/load_path_test.rb
index d9aac8719c..714d62311d 100644
--- a/railties/test/application/initializers/load_path_test.rb
+++ b/railties/test/application/initializers/load_path_test.rb
@@ -19,7 +19,7 @@ module ApplicationTests
assert $:.include?("#{app_path}/app/models")
end
- test "initializing an application allows to load code on lib path inside application class definition" do
+ test "initializing an application allows to load code on lib path inside application class definitation" do
app_file "lib/foo.rb", <<-RUBY
module Foo; end
RUBY
@@ -60,8 +60,6 @@ module ApplicationTests
add_to_config <<-RUBY
config.root = "#{app_path}"
- config.cache_classes = true
- config.load_paths << "#{app_path}/lib"
config.eager_load_paths << "#{app_path}/lib"
RUBY