diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 058308a..dab5382 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -751,7 +751,7 @@ def test_after_bundle_callback
template
end
- sequence = ['install', 'exec spring binstub --all', 'echo ran after_bundle']
+ sequence = ['install --local', 'exec spring binstub --all', 'echo ran after_bundle']
@sequence_step ||= 0
ensure_bundler_first = -> command do
assert_equal sequence[@sequence_step], command, "commands should be called in sequence #{sequence}"
--
2.7.4