diff options
author | Javan Makhmali <javan@javan.us> | 2019-01-09 08:09:51 -0500 |
---|---|---|
committer | Javan Makhmali <javan@javan.us> | 2019-01-10 11:01:57 -0500 |
commit | 86b489e3d6a9efbefbc62e8531d0f5850934d4e1 (patch) | |
tree | 680d879e2a88d27d8cef6accdf327d076ae74343 /railties/test/generators | |
parent | 7aaf9b8076704426c5e3f20bc3018c398f58dc88 (diff) | |
download | rails-86b489e3d6a9efbefbc62e8531d0f5850934d4e1.tar.gz rails-86b489e3d6a9efbefbc62e8531d0f5850934d4e1.tar.bz2 rails-86b489e3d6a9efbefbc62e8531d0f5850934d4e1.zip |
Move all npm packages to @rails scope
Fixes #33083
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/shared_generator_tests.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb index 4dfcb35ad9..f673832caa 100644 --- a/railties/test/generators/shared_generator_tests.rb +++ b/railties/test/generators/shared_generator_tests.rb @@ -206,7 +206,7 @@ module SharedGeneratorTests unless generator_class.name == "Rails::Generators::PluginGenerator" assert_file "#{application_path}/app/javascript/packs/application.js" do |content| - assert_match(/^import \* as ActiveStorage from "activestorage"\nActiveStorage.start\(\)/, content) + assert_match(/^import \* as ActiveStorage from "@rails\/activestorage"\nActiveStorage.start\(\)/, content) end end @@ -267,7 +267,7 @@ module SharedGeneratorTests assert_file "#{application_path}/config/application.rb", /#\s+require\s+["']active_storage\/engine["']/ assert_file "#{application_path}/app/javascript/packs/application.js" do |content| - assert_no_match(/^import * as ActiveStorage from "activestorage"\nActiveStorage.start\(\)/, content) + assert_no_match(/^import * as ActiveStorage from "@rails\/activestorage"\nActiveStorage.start\(\)/, content) end assert_file "#{application_path}/config/environments/development.rb" do |content| |