diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-11-08 12:15:27 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-11-08 13:24:12 +0900 |
commit | 67db41aa7f17c2d34eb5a914ac7a6b2574930ff4 (patch) | |
tree | e0c98751d15eadc90e5af611e24c22c89abe9e69 /railties/test/railties | |
parent | daf77db65d9d5e295ee3ba86605988875cb834e4 (diff) | |
download | rails-67db41aa7f17c2d34eb5a914ac7a6b2574930ff4.tar.gz rails-67db41aa7f17c2d34eb5a914ac7a6b2574930ff4.tar.bz2 rails-67db41aa7f17c2d34eb5a914ac7a6b2574930ff4.zip |
Do not run `active_storage:install` when bundle install is skipped
In order to execute the `rails` command, need to run bundle install in
advance.
Therefore, if skipped bundle install, `rails` command may fail and
should not do it.
Diffstat (limited to 'railties/test/railties')
-rw-r--r-- | railties/test/railties/engine_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb index 132b3b3a6e..fc710feb63 100644 --- a/railties/test/railties/engine_test.rb +++ b/railties/test/railties/engine_test.rb @@ -90,6 +90,8 @@ module RailtiesTest boot_rails Dir.chdir(app_path) do + # Install Active Storage migration file first so as not to affect test. + `bundle exec rake active_storage:install` output = `bundle exec rake bukkits:install:migrations` ["CreateUsers", "AddLastNameToUsers", "CreateSessions"].each do |migration_name| @@ -175,6 +177,8 @@ module RailtiesTest boot_rails Dir.chdir(app_path) do + # Install Active Storage migration file first so as not to affect test. + `bundle exec rake active_storage:install` output = `bundle exec rake railties:install:migrations`.split("\n") assert_match(/Copied migration \d+_create_users\.core_engine\.rb from core_engine/, output.first) |