summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStan Lo <stan.lo@shopify.com>2022-10-26 15:44:01 +0100
committergit <svn-admin@ruby-lang.org>2022-10-26 15:15:30 +0000
commit0dc2e1a764ba2a18d3646f11f272b05395b01201 (patch)
treed1a1bcc2006dbd55b73d0794904f5e98cb96d781 /test
parent73a0223f952ef40d4986dde65eadb8f0b59521f2 (diff)
[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')
-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 69830c061b..2fe60a7ca8 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_cmd.rb
@@ -422,9 +422,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/]
@@ -450,8 +447,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