mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Suppress warnings
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
This commit is contained in:
parent
d889e810f3
commit
2022470a95
1 changed files with 2 additions and 2 deletions
|
@ -429,7 +429,7 @@ module TestIRB
|
||||||
assert(possible_rdoc_output.any? { |output| output.match?(out) }, "Expect the help command to match one of the possible outputs")
|
assert(possible_rdoc_output.any? { |output| output.match?(out) }, "Expect the help command to match one of the possible outputs")
|
||||||
ensure
|
ensure
|
||||||
# this is the only way to reset the redefined method without coupling the test with its implementation
|
# this is the only way to reset the redefined method without coupling the test with its implementation
|
||||||
load "irb/cmd/help.rb"
|
EnvUtil.suppress_warning { load "irb/cmd/help.rb" }
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_help_without_rdoc
|
def test_help_without_rdoc
|
||||||
|
@ -454,7 +454,7 @@ module TestIRB
|
||||||
assert_match(/=> IRB::ExtendCommand::Help\n/, out)
|
assert_match(/=> IRB::ExtendCommand::Help\n/, out)
|
||||||
ensure
|
ensure
|
||||||
# this is the only way to reset the redefined method without coupling the test with its implementation
|
# this is the only way to reset the redefined method without coupling the test with its implementation
|
||||||
load "irb/cmd/help.rb"
|
EnvUtil.suppress_warning { load "irb/cmd/help.rb" }
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_irb_load
|
def test_irb_load
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue