summaryrefslogtreecommitdiff
path: root/test/reline/test_string_processing.rb
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2023-07-07 18:27:14 +0100
committergit <[email protected]>2023-07-07 17:27:25 +0000
commit24d9e21f84eced634b3e443ada2a57621b2b4b9b (patch)
tree96ecaa8228d6b04c80b48047e8a77abc15b5cb61 /test/reline/test_string_processing.rb
parenta642a94b68a31c0e7c092087114c269132cdb159 (diff)
[ruby/reline] Reduce direct references to `Reline::IOGate`
(https://github.com/ruby/reline/pull/566) * Avoid referencing IOGate from IOGate classes The only time those classes being used is when themselves being the IOGate. So when referencing to IOGate, it's better to use `self` instead. * Avoid referencing to IOGate from LineEditor directly * Avoid referencing to IOGate from Core directly * Reference to Reline.core directly * Replace Reline::IOGate with Reline.core.io_gate
Diffstat (limited to 'test/reline/test_string_processing.rb')
-rw-r--r--test/reline/test_string_processing.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/reline/test_string_processing.rb b/test/reline/test_string_processing.rb
index 5db97545da..2e5d27dc4f 100644
--- a/test/reline/test_string_processing.rb
+++ b/test/reline/test_string_processing.rb
@@ -6,7 +6,7 @@ class Reline::LineEditor::StringProcessingTest < Reline::TestCase
@prompt = '> '
@config = Reline::Config.new
Reline::HISTORY.instance_variable_set(:@config, @config)
- @encoding = Reline::IOGate.encoding
+ @encoding = Reline.core.encoding
@line_editor = Reline::LineEditor.new(@config, @encoding)
@line_editor.reset(@prompt, encoding: @encoding)
end