[rubygems/rubygems] [SpecFetcher tests] Use >3 character long fake gem name.

ce06b8f0d9
This commit is contained in:
Ellen Marie Dash 2024-10-23 19:18:57 -04:00 committed by git
parent 5549dd2c12
commit a24cb8ac43

View file

@ -184,16 +184,16 @@ class TestGemCommandsFetchCommand < Gem::TestCase
def test_execute_version_nonexistent
spec_fetcher do |fetcher|
fetcher.spec "foo", 1
fetcher.spec "foobar", 1
end
@cmd.options[:args] = %w[foo:2]
@cmd.options[:args] = %w[foobar:2]
execute_with_term_error
expected = <<-EXPECTED
ERROR: Could not find a valid gem 'foo' (2) in any repository
ERROR: Possible alternatives: foo
ERROR: Could not find a valid gem 'foobar' (2) in any repository
ERROR: Possible alternatives: foobar
EXPECTED
assert_equal expected, @ui.error
@ -201,16 +201,16 @@ ERROR: Possible alternatives: foo
def test_execute_nonexistent_hint_disabled
spec_fetcher do |fetcher|
fetcher.spec "foo", 1
fetcher.spec "foobar", 1
end
@cmd.options[:args] = %w[foo:2]
@cmd.options[:args] = %w[foobar:2]
@cmd.options[:suggest_alternate] = false
execute_with_term_error
expected = <<-EXPECTED
ERROR: Could not find a valid gem 'foo' (2) in any repository
ERROR: Could not find a valid gem 'foobar' (2) in any repository
EXPECTED
assert_equal expected, @ui.error