diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-24 14:48:00 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-24 14:48:00 +0100 |
commit | 84ebfa4550b2325c6c89bc13aa6f904ff88d0db7 (patch) | |
tree | 7328c06394e114903a57aea89b94411986e9eaf1 /railties/test/initializer | |
parent | dd05b6c543f48050f494214da7803da6f5655292 (diff) | |
download | rails-84ebfa4550b2325c6c89bc13aa6f904ff88d0db7.tar.gz rails-84ebfa4550b2325c6c89bc13aa6f904ff88d0db7.tar.bz2 rails-84ebfa4550b2325c6c89bc13aa6f904ff88d0db7.zip |
Ensure metals and initializers in plugins are loaded.
Diffstat (limited to 'railties/test/initializer')
-rw-r--r-- | railties/test/initializer/path_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/initializer/path_test.rb b/railties/test/initializer/path_test.rb index 54bdddbdf2..7a40d7fa6e 100644 --- a/railties/test/initializer/path_test.rb +++ b/railties/test/initializer/path_test.rb @@ -38,6 +38,7 @@ module InitializerTests test "booting up Rails yields a valid paths object" do assert_path @paths.app.metals, "app", "metal" + assert_path @paths.app.helpers, "app", "helpers" assert_path @paths.app.views, "app", "views" assert_path @paths.lib, "lib" assert_path @paths.vendor, "vendor" @@ -56,7 +57,7 @@ module InitializerTests test "booting up Rails yields a list of paths that are eager" do assert @paths.app.eager_load? assert @paths.app.controllers.eager_load? - assert @paths.app.metals.eager_load? + assert @paths.app.helpers.eager_load? end test "environments has a glob equal to the current environment" do @@ -70,6 +71,7 @@ module InitializerTests assert_in_load_path "lib" assert_in_load_path "vendor" + assert_not_in_load_path "app", "metal" assert_not_in_load_path "config" assert_not_in_load_path "config", "locales" assert_not_in_load_path "config", "environments" |