aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorLiceth Ovalles <liceova22@gmail.com>2016-11-20 16:37:06 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2016-11-28 12:11:07 -0500
commite6730c7ffbf51c985611d9281e3d080880eb3366 (patch)
tree2117a8a81746e613af67e6768a06fc21b377b1c6 /railties/test
parent89822e86d8da3771f5a72c2d33888af76aec9d6e (diff)
downloadrails-e6730c7ffbf51c985611d9281e3d080880eb3366.tar.gz
rails-e6730c7ffbf51c985611d9281e3d080880eb3366.tar.bz2
rails-e6730c7ffbf51c985611d9281e3d080880eb3366.zip
Add node_modules path to assets load paths when --yarn option is used
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/app_generator_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index f673058de8..d7b682c5a9 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -497,6 +497,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
def test_generator_if_yarn_option_is_given
run_generator([destination_root, "--yarn"])
assert_file "package.json", /dependencies/
+ assert_file "config/initializers/assets.rb", /node_modules/
end
def test_inclusion_of_jbuilder