diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-11 18:51:10 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-11 18:58:20 +0300 |
commit | 2c667814c8ea47a5e73b60a2bd846bd31fef3a32 (patch) | |
tree | 0572ce0edcc72b42a2f5933423c97f4ad6bf1da6 /railties/test | |
parent | 09e1452eeba395ce475b087070273e4765dc2fd4 (diff) | |
download | rails-2c667814c8ea47a5e73b60a2bd846bd31fef3a32.tar.gz rails-2c667814c8ea47a5e73b60a2bd846bd31fef3a32.tar.bz2 rails-2c667814c8ea47a5e73b60a2bd846bd31fef3a32.zip |
`bundle binstubs bundler` should be executed after `bundle install`
Fixes:
`bundle binstubs bundler` doesn't generate `bin/bundle` for newly
generated Rails app.
```
...
(snip)
run bundle binstubs bundler
The git source https://github.com/rails/web-console.git is not yet checked out.
Please run `bundle install` before trying to start your application
run bundle install
Fetching https://github.com/rails/web-console.git
(snip)
...
```
Related to #33202
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/app_generator_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb index 0d6c1338be..f33a7bd99d 100644 --- a/railties/test/generators/app_generator_test.rb +++ b/railties/test/generators/app_generator_test.rb @@ -972,7 +972,7 @@ class AppGeneratorTest < Rails::Generators::TestCase template end - sequence = ["git init", "binstubs bundler", "install", "exec spring binstub --all", "echo ran after_bundle"] + sequence = ["git init", "install", "binstubs bundler", "exec spring binstub --all", "echo ran after_bundle"] @sequence_step ||= 0 ensure_bundler_first = -> command, options = nil do assert_equal sequence[@sequence_step], command, "commands should be called in sequence #{sequence}" |