File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,6 @@ def test_find_command_unknown_suggestions
80
80
message = "Unknown command pish" . dup
81
81
82
82
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 ]
86
83
message << "\n Did you mean? \" push\" "
87
84
end
88
85
@@ -92,13 +89,7 @@ def test_find_command_unknown_suggestions
92
89
actual_message = e . message
93
90
end
94
91
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
102
93
end
103
94
104
95
def test_run_interrupt
You can’t perform that action at this time.
0 commit comments