diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-10-07 02:51:52 -0300 |
---|---|---|
committer | Elia Schito <elia@schito.me> | 2012-10-27 14:12:41 +0200 |
commit | 552a3e145373cabe25a78d8d7cba2ceaabd9ecc5 (patch) | |
tree | 7d36f4389a94e80f3a0957268f7cf41939dfcaec /railties/test | |
parent | 7f09bcd1810fb8295cde1f54c6eece260fdd4519 (diff) | |
download | rails-552a3e145373cabe25a78d8d7cba2ceaabd9ecc5.tar.gz rails-552a3e145373cabe25a78d8d7cba2ceaabd9ecc5.tar.bz2 rails-552a3e145373cabe25a78d8d7cba2ceaabd9ecc5.zip |
Add test case to assets eager load
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/paths_test.rb | 3 |
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" |