File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -488,7 +488,14 @@ class ActiveSupport::TestCase
488
488
f . puts "require 'rails/all'"
489
489
end
490
490
491
+ unless File . exist? ( "#{ RAILS_FRAMEWORK_ROOT } /actionview/lib/assets/compiled/rails-ujs.js" )
492
+ Dir . chdir ( "#{ RAILS_FRAMEWORK_ROOT } /actionview" ) { `yarn build` }
493
+ end
494
+
491
495
assets_path = "#{ RAILS_FRAMEWORK_ROOT } /railties/test/isolation/assets"
496
+ unless Dir . exist? ( "#{ assets_path } /node_modules" )
497
+ Dir . chdir ( assets_path ) { `yarn install` }
498
+ end
492
499
FileUtils . cp ( "#{ assets_path } /package.json" , "#{ app_template_path } /package.json" )
493
500
FileUtils . cp ( "#{ assets_path } /config/webpacker.yml" , "#{ app_template_path } /config/webpacker.yml" )
494
501
FileUtils . cp_r ( "#{ assets_path } /config/webpack" , "#{ app_template_path } /config/webpack" )
You can’t perform that action at this time.
0 commit comments