aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-29 06:02:16 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-10-29 06:02:16 -0700
commita53e46406ea409c2d652a24ff5ecf096e293c8c9 (patch)
tree243df579be1f25076e54980dbce41c2077bf42fd /railties/test
parentd40309a0b8faaea766f8cf89b36d2323a1d35d88 (diff)
parentf7de647f2cd099ecf6434fa4a0db1ec297f1c32d (diff)
downloadrails-a53e46406ea409c2d652a24ff5ecf096e293c8c9.tar.gz
rails-a53e46406ea409c2d652a24ff5ecf096e293c8c9.tar.bz2
rails-a53e46406ea409c2d652a24ff5ecf096e293c8c9.zip
Merge pull request #7587 from elia/fix-too-eager-loading
Should not eager_load app/assets
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/paths_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/test/application/paths_test.rb b/railties/test/application/paths_test.rb
index 964cff48cd..176476f129 100644
--- a/railties/test/application/paths_test.rb
+++ b/railties/test/application/paths_test.rb
@@ -61,6 +61,8 @@ module ApplicationTests
assert eager_load.include?(root("app/controllers"))
assert eager_load.include?(root("app/helpers"))
assert eager_load.include?(root("app/models"))
+ assert !eager_load.include?(root("app/views")), "expected to not be in the eager_load_path"
+ assert !eager_load.include?(root("app/assets")), "expected to not be in the eager_load_path"
end
test "environments has a glob equal to the current environment" do
@@ -75,6 +77,7 @@ module ApplicationTests
assert_in_load_path "vendor"
assert_not_in_load_path "app", "views"
+ assert_not_in_load_path "app", "assets"
assert_not_in_load_path "config"
assert_not_in_load_path "config", "locales"
assert_not_in_load_path "config", "environments"