From 1e8e1d3c9deaf3abdcf42ab5b63927b9eac4a98c Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 1 Dec 2017 12:04:01 +0900 Subject: [PATCH] Fix test case on older versions of Ruby --- test/test_go.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_go.rb b/test/test_go.rb index b3dc1c0..111595e 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -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