ruby-changes:65067
From: Nobuhiro <ko1@a...>
Date: Wed, 27 Jan 2021 15:02:27 +0900 (JST)
Subject: [ruby-changes:65067] 69b42ae02d (master): [ruby/irb] specify the `VERBOSE` to `false` and fix tests to fit
https://git.ruby-lang.org/ruby.git/commit/?id=69b42ae02d From 69b42ae02db7385c18bafae893bb9368c9b79152 Mon Sep 17 00:00:00 2001 From: Nobuhiro IMAI <nov@y...> Date: Sat, 23 Jan 2021 04:45:55 +0900 Subject: [ruby/irb] specify the `VERBOSE` to `false` and fix tests to fit https://github.com/ruby/irb/commit/502c590925 --- test/irb/test_cmd.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index 9febcc8..b5776ae 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -285,6 +285,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L285 "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 @@ -295,10 +296,8 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L296 assert_pattern_list([ /=> "bug17564"\n/, /=> "bug17564"\n/, - />> a = 'hi'\n/, - /=> "hi"\n/, - />> \n/, - /=> nil\n/, + / => "hi"\n/, + / => nil\n/, /=> "hi"\n/, ], out) end @@ -312,6 +311,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L311 "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 @@ -322,10 +322,8 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L322 assert_pattern_list([ /=> "bug17564"\n/, /=> "bug17564"\n/, - />> a = 'hi'\n/, - /=> "hi"\n/, - />> \n/, - /=> nil\n/, + / => "hi"\n/, + / => nil\n/, /=> "bug17564"\n/, ], out) end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/