diff options
author | manga_osyo <manga.osyo@gmail.com> | 2019-07-15 03:08:36 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-08-27 01:23:15 +0900 |
commit | afed2668a6f6675536e967f053d7dec0b2026e2f (patch) | |
tree | 14b034424636738c82511a2944a636f6a581e2e1 | |
parent | f60e5a1f99088849fdc8ddfa84d594179c197a54 (diff) | |
download | ruby-afed2668a6f6675536e967f053d7dec0b2026e2f.tar.gz |
Fix reference core method.
-rw-r--r-- | test/reline/test_within_pipe.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/reline/test_within_pipe.rb b/test/reline/test_within_pipe.rb index a4032748c4..11c3c0e86a 100644 --- a/test/reline/test_within_pipe.rb +++ b/test/reline/test_within_pipe.rb @@ -6,8 +6,8 @@ class Reline::WithinPipeTest < Reline::TestCase @reader, @writer = IO.pipe((RELINE_TEST_ENCODING rescue Encoding.default_external)) Reline.input = @reader @output = Reline.output = File.open(IO::NULL, 'w') - @config = Reline.class_variable_get(:@@config) - @line_editor = Reline.class_variable_get(:@@line_editor) + @config = Reline.send(:core).config + @line_editor = Reline.send(:core).line_editor end def teardown |