mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 22:45:03 +02:00
Stop using global constant, RELINE_TEST_ENCODING
This commit is contained in:
parent
af19f9a6e9
commit
1192393b3e
8 changed files with 15 additions and 17 deletions
|
@ -6,7 +6,7 @@ class Reline::LineEditor::StringProcessingTest < Reline::TestCase
|
|||
@prompt = '> '
|
||||
@config = Reline::Config.new
|
||||
Reline::HISTORY.instance_variable_set(:@config, @config)
|
||||
@encoding = (RELINE_TEST_ENCODING rescue Encoding.default_external)
|
||||
@encoding = Reline::IOGate.encoding
|
||||
@line_editor = Reline::LineEditor.new(@config, @encoding)
|
||||
@line_editor.reset(@prompt, encoding: @encoding)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue