mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Use Reline.test_mode in Reline's test too
This commit is contained in:
parent
f8732bd4d6
commit
ca435ed04a
2 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ require_relative 'helper'
|
||||||
|
|
||||||
class Reline::KeyActor::Emacs::Test < Reline::TestCase
|
class Reline::KeyActor::Emacs::Test < Reline::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
Reline.send(:test_mode)
|
||||||
@prompt = '> '
|
@prompt = '> '
|
||||||
@config = Reline::Config.new # Emacs mode is default
|
@config = Reline::Config.new # Emacs mode is default
|
||||||
@encoding = (RELINE_TEST_ENCODING rescue Encoding.default_external)
|
@encoding = (RELINE_TEST_ENCODING rescue Encoding.default_external)
|
||||||
|
|
|
@ -2,6 +2,7 @@ require_relative 'helper'
|
||||||
|
|
||||||
class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
||||||
def setup
|
def setup
|
||||||
|
Reline.send(:test_mode)
|
||||||
@prompt = '> '
|
@prompt = '> '
|
||||||
@config = Reline::Config.new
|
@config = Reline::Config.new
|
||||||
@config.read_lines(<<~LINES.split(/(?<=\n)/))
|
@config.read_lines(<<~LINES.split(/(?<=\n)/))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue