diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/readline/test_readline.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 3a5f972fcd..0c50a99bc9 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -448,6 +448,18 @@ class TestReadline < Test::Unit::TestCase Readline::HISTORY.clear end if !/EditLine/n.match(Readline::VERSION) + def test_refresh_line + bug6232 = '[ruby-core:43957] [Bug #6232] refresh_line after set_screen_size' + with_temp_stdio do |stdin, stdout| + replace_stdio(stdin.path, stdout.path) do + assert_ruby_status(%w[-rreadline -], <<-'end;', bug6232) + Readline.set_screen_size(40, 80) + Readline.refresh_line + end; + end + end + end if Readline.respond_to?(:refresh_line) + private def replace_stdio(stdin_path, stdout_path) |