diff options
Diffstat (limited to 'test/reline')
-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 |