mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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
This commit is contained in:
parent
73a0223f95
commit
0dc2e1a764
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue