diff options
author | Nobuhiro IMAI <nov@yo.rim.or.jp> | 2021-01-23 04:45:55 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-01-27 15:02:13 +0900 |
commit | 69b42ae02db7385c18bafae893bb9368c9b79152 (patch) | |
tree | 073aff1d4b0f03b27ee5f3914a1039a1151d7034 /test | |
parent | e80e5a2f897088bc5284ea61817a910d1d334652 (diff) | |
download | ruby-69b42ae02db7385c18bafae893bb9368c9b79152.tar.gz |
[ruby/irb] specify the `VERBOSE` to `false` and fix tests to fit
https://github.com/ruby/irb/commit/502c590925
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_cmd.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index 9febcc8671..b5776ae01f 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -285,6 +285,7 @@ module TestIRB "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 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 "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 assert_pattern_list([ /=> "bug17564"\n/, /=> "bug17564"\n/, - />> a = 'hi'\n/, - /=> "hi"\n/, - />> \n/, - /=> nil\n/, + / => "hi"\n/, + / => nil\n/, /=> "bug17564"\n/, ], out) end |