Skip to content

Commit 7c5ddb7

Browse files
committed
Remove debug code
* Revert "Debug: More inspections" e5a6e95. * Revert "Debug for sporadical failures on RubyCI" 7cafc61.
1 parent 03c86b0 commit 7c5ddb7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

test/rubygems/test_gem_command_manager.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ def test_find_command_unknown_suggestions
8080
message = "Unknown command pish".dup
8181

8282
if defined?(DidYouMean)
83-
assert_operator Gem::UnknownCommandError, :<, DidYouMean::Correctable
84-
assert_operator Gem::UnknownCommandError, :instance_variable_defined?, :@attached
85-
assert_send [Gem::UnknownCommandError, :instance_variable_get, :@attached]
8683
message << "\nDid you mean? \"push\""
8784
end
8885

@@ -92,13 +89,7 @@ def test_find_command_unknown_suggestions
9289
actual_message = e.message
9390
end
9491

95-
assert_equal message, actual_message, proc {|msg|
96-
(msg || "") + {
97-
unknown_command: e.unknown_command,
98-
spell_checker: (e.spell_checker rescue nil),
99-
corrections: (e.corrections rescue nil),
100-
}.pretty_inspect
101-
}
92+
assert_equal message, actual_message
10293
end
10394

10495
def test_run_interrupt

0 commit comments

Comments
 (0)