Skip to content
Snippets Groups Projects
Unverified Commit 1e8e1d3c authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Fix test case on older versions of Ruby

parent f6b19620
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment