[ruby/irb] Remove unnecessary test setup
This commit is contained in:
parent
bb7067cbdf
commit
b260c1e8c8
@ -414,10 +414,8 @@ module TestIRB
|
|||||||
"help 'String#gsub'\n",
|
"help 'String#gsub'\n",
|
||||||
"\n",
|
"\n",
|
||||||
])
|
])
|
||||||
IRB.conf[:VERBOSE] = false
|
|
||||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||||
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
|
||||||
out, err = capture_output do
|
out, err = capture_output do
|
||||||
irb.eval_input
|
irb.eval_input
|
||||||
end
|
end
|
||||||
@ -437,10 +435,8 @@ module TestIRB
|
|||||||
"help 'String#gsub'\n",
|
"help 'String#gsub'\n",
|
||||||
"\n",
|
"\n",
|
||||||
])
|
])
|
||||||
IRB.conf[:VERBOSE] = false
|
|
||||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||||
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
irb = IRB::Irb.new(IRB::WorkSpace.new(self), input)
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
|
||||||
out, err = capture_output do
|
out, err = capture_output do
|
||||||
IRB::TestHelper.without_rdoc do
|
IRB::TestHelper.without_rdoc do
|
||||||
irb.eval_input
|
irb.eval_input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user