summaryrefslogtreecommitdiff
path: root/test/irb
diff options
context:
space:
mode:
authorStan Lo <stan.lo@shopify.com>2022-10-26 15:44:01 +0100
committerTakashi Kokubun <takashikkbn@gmail.com>2022-12-26 13:04:04 -0800
commit87988756d0ad0c494c7589d75a079207ce0747ee (patch)
tree9227682e71c3b1076ddf496e77c1eea557899ef4 /test/irb
parent148eb05ec138acec8f1b527a81ec498811bc311d (diff)
downloadruby-87988756d0ad0c494c7589d75a079207ce0747ee.tar.gz
[ruby/irb] Remove unnecessary warning check on help command
It's not an intentional behavior of the command and it behaves differently in different environments. So checking it actually brings more problem than benefit. https://github.com/ruby/irb/commit/b3203bc784
Diffstat (limited to 'test/irb')
-rw-r--r--test/irb/test_cmd.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb
index fa04b60f9f..662af94b81 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_cmd.rb
@@ -388,9 +388,6 @@ module TestIRB
irb.eval_input
end
- # the help command lazily loads rdoc by redefining the execute method
- assert_match(/discarding old execute/, err) unless RUBY_ENGINE == 'truffleruby'
-
# the former is what we'd get without document content installed, like on CI
# the latter is what we may get locally
possible_rdoc_output = [/Nothing known about String#gsub/, /Returns a copy of self with all occurrences of the given pattern/]
@@ -414,8 +411,6 @@ module TestIRB
end
end
- # since LoadError will be raised, the execute won't be redefined
- assert_no_match(/discarding old execute/, err)
# if it fails to require rdoc, it only returns the command object
assert_match(/=> IRB::ExtendCommand::Help\n/, out)
ensure