[ruby/irb] update test/irb/test_init.rb to avoid useless eval
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> https://github.com/ruby/irb/commit/2dfdc031ec
This commit is contained in:
parent
b8ffb1c46f
commit
d06d4560a1
@ -73,11 +73,11 @@ module TestIRB
|
||||
assert IRB.conf[:USE_COLORIZE]
|
||||
|
||||
ENV['NO_COLOR'] = 'true'
|
||||
IRB.setup(eval("__FILE__"))
|
||||
IRB.setup(__FILE__)
|
||||
refute IRB.conf[:USE_COLORIZE]
|
||||
|
||||
ENV['NO_COLOR'] = nil
|
||||
IRB.setup(eval("__FILE__"))
|
||||
IRB.setup(__FILE__)
|
||||
assert IRB.conf[:USE_COLORIZE]
|
||||
ensure
|
||||
ENV['NO_COLOR'] = orig
|
||||
|
Loading…
x
Reference in New Issue
Block a user