summaryrefslogtreecommitdiff
path: root/test/irb/command
diff options
context:
space:
mode:
authorStan Lo <stan.lo@shopify.com>2024-04-24 05:00:56 +0800
committerGitHub <noreply@github.com>2024-04-23 21:00:56 +0000
commite11237904cdee46409d0efb436b9b9326aaff355 (patch)
tree65419dd1495c52a2e25361cb222919793395fdf3 /test/irb/command
parentb9109b270d129561f06bc2dcd6feaf5c43e82360 (diff)
Sync IRB f9347b1 (#10611)
Diffstat (limited to 'test/irb/command')
-rw-r--r--test/irb/command/test_help.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/irb/command/test_help.rb b/test/irb/command/test_help.rb
index c82c43a4c5..df3753dae7 100644
--- a/test/irb/command/test_help.rb
+++ b/test/irb/command/test_help.rb
@@ -62,5 +62,14 @@ module TestIRB
assert_match(/\$\s+Alias for `show_source`/, out)
assert_match(/@\s+Alias for `whereami`/, out)
end
+
+ def test_help_lists_helper_methods
+ out = run_ruby_file do
+ type "help"
+ type "exit"
+ end
+
+ assert_match(/Helper methods\s+conf\s+Returns the current context/, out)
+ end
end
end