diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-02 12:21:09 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-06-02 20:31:25 +0900 |
commit | d04ebc57f232e1a2ca36bd3d5ed9a24f63ee43d6 (patch) | |
tree | a99d1e3556cff9a657a595ab20d5f2d012510e7c /test | |
parent | 06a25344d9944529383cf76e81c8342b8821cf5e (diff) | |
download | ruby-d04ebc57f232e1a2ca36bd3d5ed9a24f63ee43d6.tar.gz |
Add true condition `Reline`
Diffstat (limited to 'test')
-rw-r--r-- | test/reline/test_config.rb | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/test/reline/test_config.rb b/test/reline/test_config.rb index 1e65c885d0..bb9bb30a36 100644 --- a/test/reline/test_config.rb +++ b/test/reline/test_config.rb @@ -103,16 +103,18 @@ class Reline::Config::Test < Reline::TestCase end def test_if_with_indent - @config.read_lines(<<~LINES.split(/(?<=\n)/)) - set bell-style none - $if Ruby - set bell-style audible - $else - set bell-style visible - $endif - LINES - - assert_equal :audible, @config.instance_variable_get(:@bell_style) + %w[Ruby Reline].each do |cond| + @config.read_lines(<<~LINES.split(/(?<=\n)/)) + set bell-style none + $if #{cond} + set bell-style audible + $else + set bell-style visible + $endif + LINES + + assert_equal :audible, @config.instance_variable_get(:@bell_style) + end end def test_default_key_bindings |