m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

Fix test case on older versions of Ruby

This commit is contained in:
Junegunn Choi
2017-12-01 12:04:01 +09:00
parent f6b1962056
commit 1e8e1d3c9d

View File

@@ -1322,9 +1322,9 @@ class TestGoFZF < TestBase
tmux.send_keys %(seq 1000 | #{FZF} --preview 'echo {{}-{}-\\$LINES-\\$COLUMNS}' --preview-window down:1:hidden --bind ?:toggle-preview), :Enter
tmux.until { |lines| lines[-1] == '>' }
tmux.send_keys '?'
tmux.until { |lines| lines[-2].match?(/ {1-1-1-[0-9]+}/) }
tmux.until { |lines| lines[-2] =~ / {1-1-1-[0-9]+}/ }
tmux.send_keys '555'
tmux.until { |lines| lines[-2].match?(/ {555-555-1-[0-9]+}/) }
tmux.until { |lines| lines[-2] =~ / {555-555-1-[0-9]+}/ }
tmux.send_keys '?'
tmux.until { |lines| lines[-1] == '> 555' }
end