Skip to content
Browse files

Add test case to assets eager load

  • Loading branch information...
1 parent 7f09bcd commit 552a3e145373cabe25a78d8d7cba2ceaabd9ecc5 @rafaelfranca rafaelfranca committed with elia
Showing with 3 additions and 0 deletions.
  1. +3 −0 railties/test/application/paths_test.rb
View
3 railties/test/application/paths_test.rb
@@ -61,6 +61,8 @@ def assert_not_in_load_path(*path)
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 @@ def assert_not_in_load_path(*path)
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"

0 comments on commit 552a3e1

Please sign in to comment.
Something went wrong with that request. Please try again.