mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unnecessary test
Since #32289, `Spellchecker.suggest` returns only one value, multiple suggestions not output.
This commit is contained in:
parent
fa31a06de5
commit
f7fd680a6d
2 changed files with 2 additions and 8 deletions
|
@ -293,10 +293,10 @@ module Rails
|
|||
Run `rails server --help` for more options.
|
||||
MSG
|
||||
else
|
||||
suggestions = Rails::Command::Spellchecker.suggest(server, from: RACK_SERVERS)
|
||||
suggestion = Rails::Command::Spellchecker.suggest(server, from: RACK_SERVERS)
|
||||
|
||||
<<~MSG
|
||||
Could not find server "#{server}". Maybe you meant #{suggestions.inspect}?
|
||||
Could not find server "#{server}". Maybe you meant #{suggestion.inspect}?
|
||||
Run `rails server --help` for more options.
|
||||
MSG
|
||||
end
|
||||
|
|
|
@ -49,12 +49,6 @@ class GeneratorsTest < Rails::Generators::TestCase
|
|||
I18n.default_locale = orig_default_locale
|
||||
end
|
||||
|
||||
def test_generator_multiple_suggestions
|
||||
name = :tas
|
||||
output = capture(:stdout) { Rails::Generators.invoke name }
|
||||
assert_match 'Maybe you meant "task"?', output
|
||||
end
|
||||
|
||||
def test_help_when_a_generator_with_required_arguments_is_invoked_without_arguments
|
||||
output = capture(:stdout) { Rails::Generators.invoke :model, [] }
|
||||
assert_match(/Description:/, output)
|
||||
|
|
Loading…
Reference in a new issue