add test to check we read new path correctly

This commit is contained in:
Andrew Kress 2019-08-14 12:36:59 -05:00
parent 61c5a14cab
commit 36beec7b55

@ -1712,6 +1712,27 @@ def index
end
end
test "autoload paths will exclude changed path" do
app_file "config/webpacker.yml", <<-YAML
default: &default
source_path: app/webpack
check_yarn_integrity: false
development:
<<: *default
test:
<<: *default
production:
<<: *default
YAML
app "development"
ActiveSupport::Dependencies.autoload_paths.each do |path|
assert_not_operator path, :ends_with?, "app/assets"
assert_not_operator path, :ends_with?, "app/webpack"
end
end
test "autoload paths are added to $LOAD_PATH by default" do
app "development"