mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] specify the VERBOSE
to false
and fix tests to fit
502c590925
This commit is contained in:
parent
e80e5a2f89
commit
69b42ae02d
1 changed files with 6 additions and 8 deletions
|
@ -285,6 +285,7 @@ module TestIRB
|
||||||
"irb_source '#{@tmpdir}/a.rb'\n",
|
"irb_source '#{@tmpdir}/a.rb'\n",
|
||||||
"a\n",
|
"a\n",
|
||||||
])
|
])
|
||||||
|
IRB.conf[:VERBOSE] = false
|
||||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||||
irb = IRB::Irb.new(IRB::WorkSpace.new, input)
|
irb = IRB::Irb.new(IRB::WorkSpace.new, input)
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
|
@ -295,10 +296,8 @@ module TestIRB
|
||||||
assert_pattern_list([
|
assert_pattern_list([
|
||||||
/=> "bug17564"\n/,
|
/=> "bug17564"\n/,
|
||||||
/=> "bug17564"\n/,
|
/=> "bug17564"\n/,
|
||||||
/>> a = 'hi'\n/,
|
/ => "hi"\n/,
|
||||||
/=> "hi"\n/,
|
/ => nil\n/,
|
||||||
/>> \n/,
|
|
||||||
/=> nil\n/,
|
|
||||||
/=> "hi"\n/,
|
/=> "hi"\n/,
|
||||||
], out)
|
], out)
|
||||||
end
|
end
|
||||||
|
@ -312,6 +311,7 @@ module TestIRB
|
||||||
"irb_load '#{@tmpdir}/a.rb'\n",
|
"irb_load '#{@tmpdir}/a.rb'\n",
|
||||||
"a\n",
|
"a\n",
|
||||||
])
|
])
|
||||||
|
IRB.conf[:VERBOSE] = false
|
||||||
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
||||||
irb = IRB::Irb.new(IRB::WorkSpace.new, input)
|
irb = IRB::Irb.new(IRB::WorkSpace.new, input)
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
|
@ -322,10 +322,8 @@ module TestIRB
|
||||||
assert_pattern_list([
|
assert_pattern_list([
|
||||||
/=> "bug17564"\n/,
|
/=> "bug17564"\n/,
|
||||||
/=> "bug17564"\n/,
|
/=> "bug17564"\n/,
|
||||||
/>> a = 'hi'\n/,
|
/ => "hi"\n/,
|
||||||
/=> "hi"\n/,
|
/ => nil\n/,
|
||||||
/>> \n/,
|
|
||||||
/=> nil\n/,
|
|
||||||
/=> "bug17564"\n/,
|
/=> "bug17564"\n/,
|
||||||
], out)
|
], out)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue