mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 22:45:03 +02:00
[rubygems/rubygems] [SpecFetcher tests] Use >3 character long fake gem name.
ce06b8f0d9
This commit is contained in:
parent
5549dd2c12
commit
a24cb8ac43
1 changed files with 7 additions and 7 deletions
|
@ -184,16 +184,16 @@ class TestGemCommandsFetchCommand < Gem::TestCase
|
||||||
|
|
||||||
def test_execute_version_nonexistent
|
def test_execute_version_nonexistent
|
||||||
spec_fetcher do |fetcher|
|
spec_fetcher do |fetcher|
|
||||||
fetcher.spec "foo", 1
|
fetcher.spec "foobar", 1
|
||||||
end
|
end
|
||||||
|
|
||||||
@cmd.options[:args] = %w[foo:2]
|
@cmd.options[:args] = %w[foobar:2]
|
||||||
|
|
||||||
execute_with_term_error
|
execute_with_term_error
|
||||||
|
|
||||||
expected = <<-EXPECTED
|
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
|
||||||
ERROR: Possible alternatives: foo
|
ERROR: Possible alternatives: foobar
|
||||||
EXPECTED
|
EXPECTED
|
||||||
|
|
||||||
assert_equal expected, @ui.error
|
assert_equal expected, @ui.error
|
||||||
|
@ -201,16 +201,16 @@ ERROR: Possible alternatives: foo
|
||||||
|
|
||||||
def test_execute_nonexistent_hint_disabled
|
def test_execute_nonexistent_hint_disabled
|
||||||
spec_fetcher do |fetcher|
|
spec_fetcher do |fetcher|
|
||||||
fetcher.spec "foo", 1
|
fetcher.spec "foobar", 1
|
||||||
end
|
end
|
||||||
|
|
||||||
@cmd.options[:args] = %w[foo:2]
|
@cmd.options[:args] = %w[foobar:2]
|
||||||
@cmd.options[:suggest_alternate] = false
|
@cmd.options[:suggest_alternate] = false
|
||||||
|
|
||||||
execute_with_term_error
|
execute_with_term_error
|
||||||
|
|
||||||
expected = <<-EXPECTED
|
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
|
EXPECTED
|
||||||
|
|
||||||
assert_equal expected, @ui.error
|
assert_equal expected, @ui.error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue