diff options
author | jethrodaniel <jethrodaniel@gmail.com> | 2020-08-11 21:32:44 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-05-24 11:56:05 +0900 |
commit | d06d4560a1196c72831fe59faa698d6672883448 (patch) | |
tree | 4dc249076bf4a1c7d1255699939544cf24587f7a /test/irb | |
parent | b8ffb1c46f03dacfdb6b4417274ca66cc9142e5b (diff) |
[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
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/test_init.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/irb/test_init.rb b/test/irb/test_init.rb index ade2fcb392..203108ef72 100644 --- a/test/irb/test_init.rb +++ b/test/irb/test_init.rb @@ -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 |