1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Display test_framework_hint before prompting for user selection

* On ubuntu-bundler/ubuntu_bundler3, longer lines of text get cut off
after ~50 characters
* Example: https://github.com/rubygems/rubygems/pull/3544/checks?check_run_id=703658810

https://github.com/rubygems/rubygems/commit/6a17847fd8
This commit is contained in:
Frank Lam 2020-05-24 20:48:38 +08:00 committed by Hiroshi SHIBATA
parent 0d240de2f3
commit f0ae5ac313
Notes: git 2020-06-05 07:33:53 +09:00

View file

@ -221,8 +221,9 @@ module Bundler
if test_framework.to_s.empty?
Bundler.ui.confirm "Do you want to generate tests with your gem?"
result = Bundler.ui.ask "Type 'rspec', 'minitest' or 'test-unit' to generate those test files now. \n" \
"#{test_framework_hint} rspec/minitest/test-unit/(none):"
Bundler.ui.info test_framework_hint
result = Bundler.ui.ask "Type 'rspec', 'minitest' or 'test-unit' to generate those test files now. " \
"rspec/minitest/test-unit/(none):"
if result =~ /rspec|minitest|test-unit/
test_framework = result
else