Skip to content

Commit 2dfdc03

Browse files
jethrodanielnobu
andauthored
update test/irb/test_init.rb to avoid useless eval
Co-authored-by: Nobuyoshi Nakada <[email protected]>
1 parent 401d091 commit 2dfdc03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/irb/test_init.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ def test_no_color_environment_variable
6666
assert IRB.conf[:USE_COLORIZE]
6767

6868
ENV['NO_COLOR'] = 'true'
69-
IRB.setup(eval("__FILE__"))
69+
IRB.setup(__FILE__)
7070
refute IRB.conf[:USE_COLORIZE]
7171

7272
ENV['NO_COLOR'] = nil
73-
IRB.setup(eval("__FILE__"))
73+
IRB.setup(__FILE__)
7474
assert IRB.conf[:USE_COLORIZE]
7575
ensure
7676
ENV['NO_COLOR'] = orig

0 commit comments

Comments
 (0)