Skip to content

Commit a24cb8a

Browse files
duckinatormatzbot
authored andcommitted
[rubygems/rubygems] [SpecFetcher tests] Use >3 character long fake gem name.
rubygems/rubygems@ce06b8f0d9
1 parent 5549dd2 commit a24cb8a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/rubygems/test_gem_commands_fetch_command.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,33 +184,33 @@ def test_execute_two_version_specified_by_colon
184184

185185
def test_execute_version_nonexistent
186186
spec_fetcher do |fetcher|
187-
fetcher.spec "foo", 1
187+
fetcher.spec "foobar", 1
188188
end
189189

190-
@cmd.options[:args] = %w[foo:2]
190+
@cmd.options[:args] = %w[foobar:2]
191191

192192
execute_with_term_error
193193

194194
expected = <<-EXPECTED
195-
ERROR: Could not find a valid gem 'foo' (2) in any repository
196-
ERROR: Possible alternatives: foo
195+
ERROR: Could not find a valid gem 'foobar' (2) in any repository
196+
ERROR: Possible alternatives: foobar
197197
EXPECTED
198198

199199
assert_equal expected, @ui.error
200200
end
201201

202202
def test_execute_nonexistent_hint_disabled
203203
spec_fetcher do |fetcher|
204-
fetcher.spec "foo", 1
204+
fetcher.spec "foobar", 1
205205
end
206206

207-
@cmd.options[:args] = %w[foo:2]
207+
@cmd.options[:args] = %w[foobar:2]
208208
@cmd.options[:suggest_alternate] = false
209209

210210
execute_with_term_error
211211

212212
expected = <<-EXPECTED
213-
ERROR: Could not find a valid gem 'foo' (2) in any repository
213+
ERROR: Could not find a valid gem 'foobar' (2) in any repository
214214
EXPECTED
215215

216216
assert_equal expected, @ui.error

0 commit comments

Comments
 (0)