diff options
Diffstat (limited to 'test/irb/test_cmd.rb')
-rw-r--r-- | test/irb/test_cmd.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index db48e1f1ae..ac0c115339 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -583,6 +583,16 @@ module TestIRB $bar = nil end + def test_show_cmds + out, err = execute_lines( + "show_cmds\n" + ) + + assert_empty err + assert_match(/List all available commands and their description/, out) + assert_match(/Start the debugger of debug\.gem/, out) + end + class EditTest < CommandTestCase def setup @original_editor = ENV["EDITOR"] |