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:
parent
0d240de2f3
commit
f0ae5ac313
Notes:
git
2020-06-05 07:33:53 +09:00
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue