aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-03-21 18:13:50 +0900
committeraycabta <aycabta@gmail.com>2020-03-26 17:41:21 +0900
commit90913bfabe427993e82d4a72616739ee49e61a5d (patch)
treec01354f28fbad70d502dc22d97a9981df248cff1 /test
parentf245fb1ab8d893a89c8749a703efea0b16353028 (diff)
downloadruby-90913bfabe427993e82d4a72616739ee49e61a5d.tar.gz
[ruby/reline] Suppress error in case INPUTRC env is empty
https://github.com/ruby/reline/commit/bce7e7562b
Diffstat (limited to 'test')
-rw-r--r--test/reline/test_config.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/reline/test_config.rb b/test/reline/test_config.rb
index 14342fff86..cecb364f89 100644
--- a/test/reline/test_config.rb
+++ b/test/reline/test_config.rb
@@ -206,4 +206,13 @@ class Reline::Config::Test < Reline::TestCase
history << "a\n"
assert_equal 1, history.size
end
+
+ def test_empty_inputrc_env
+ inputrc_backup = ENV['INPUTRC']
+ ENV['INPUTRC'] = ''
+ assert_nothing_raised do
+ @config.read
+ end
+ ENV['INPUTRC'] = inputrc_backup
+ end
end