Skip to content

Commit

Permalink
specify the VERBOSE to false and fix tests to fit
Browse files Browse the repository at this point in the history
  • Loading branch information
no6v committed Jan 22, 2021
1 parent bdefaa7 commit 502c590
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/irb/test_cmd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def test_irb_source
"irb_source '#{@tmpdir}/a.rb'\n",
"a\n",
])
IRB.conf[:VERBOSE] = false
IRB.conf[:PROMPT_MODE] = :SIMPLE
irb = IRB::Irb.new(IRB::WorkSpace.new, input)
IRB.conf[:MAIN_CONTEXT] = irb.context
Expand All @@ -295,10 +296,8 @@ def test_irb_source
assert_pattern_list([
/=> "bug17564"\n/,
/=> "bug17564"\n/,
/>> a = 'hi'\n/,
/=> "hi"\n/,
/>> \n/,
/=> nil\n/,
/ => "hi"\n/,
/ => nil\n/,
/=> "hi"\n/,
], out)
end
Expand All @@ -312,6 +311,7 @@ def test_irb_load
"irb_load '#{@tmpdir}/a.rb'\n",
"a\n",
])
IRB.conf[:VERBOSE] = false
IRB.conf[:PROMPT_MODE] = :SIMPLE
irb = IRB::Irb.new(IRB::WorkSpace.new, input)
IRB.conf[:MAIN_CONTEXT] = irb.context
Expand All @@ -322,10 +322,8 @@ def test_irb_load
assert_pattern_list([
/=> "bug17564"\n/,
/=> "bug17564"\n/,
/>> a = 'hi'\n/,
/=> "hi"\n/,
/>> \n/,
/=> nil\n/,
/ => "hi"\n/,
/ => nil\n/,
/=> "bug17564"\n/,
], out)
end
Expand Down

0 comments on commit 502c590

Please sign in to comment.