diff options
author | Ellen Marie Dash <[email protected]> | 2024-09-28 14:57:59 -0400 |
---|---|---|
committer | git <[email protected]> | 2024-09-28 21:12:25 +0000 |
commit | 5c18b63d0058d3d4acfce3588c3b47f3ae6c46bd (patch) | |
tree | 2d837cfa3f6d3b9aab85bcbcd0175f97dbf5baa5 /test/rubygems/test_gem_commands_exec_command.rb | |
parent | 47a3482a414013bdbbcb9da4bc3bea7451977009 (diff) |
[rubygems/rubygems] [tests] Don't expect suggestions that aren't actually helpful.
https://github.com/rubygems/rubygems/commit/e7d6b92e31
Diffstat (limited to 'test/rubygems/test_gem_commands_exec_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_exec_command.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_commands_exec_command.rb b/test/rubygems/test_gem_commands_exec_command.rb index fd48ce73ca..c632ce62b2 100644 --- a/test/rubygems/test_gem_commands_exec_command.rb +++ b/test/rubygems/test_gem_commands_exec_command.rb @@ -493,7 +493,6 @@ class TestGemCommandsExecCommand < Gem::TestCase assert_equal 2, e.exit_code assert_equal <<~ERR, @ui.error ERROR: Could not find a valid gem 'a' (= 2) in any repository - ERROR: Possible alternatives: a ERR end end @@ -574,7 +573,6 @@ class TestGemCommandsExecCommand < Gem::TestCase assert_include @ui.output, "a (= 2) not available locally" assert_equal <<~ERROR, @ui.error ERROR: Could not find a valid gem 'a' (= 2) in any repository - ERROR: Possible alternatives: a ERROR end end @@ -769,8 +767,7 @@ class TestGemCommandsExecCommand < Gem::TestCase assert_raise Gem::MockGemUi::TermError do invoke "a" end - assert_equal "ERROR: Could not find a valid gem 'a' (>= 0) in any repository\n" \ - "ERROR: Possible alternatives: a\n", @ui.error + assert_equal "ERROR: Could not find a valid gem 'a' (>= 0) in any repository\n", @ui.error assert_empty @ui.output assert_empty @installed_specs end |