summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-03-19 15:53:31 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-03-19 15:53:31 +0900
commitcfc0747d5da7a817497a3359ffdeaffa5f652d95 (patch)
tree5ec2219d213d195d66ede6dfebc2e7e27d80af1f /test
parentfcd7e8768dc4a23f6e4f1aec57c9d2236ebe7fae (diff)
downloadfzf-cfc0747d5da7a817497a3359ffdeaffa5f652d95.tar.gz
Follow Rubocop suggestion
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_go.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index de81f6e5..d5996113 100755
--- a/test/test_go.rb
+++ b/test/test_go.rb
@@ -2629,9 +2629,9 @@ class TestGoFZF < TestBase
end
def test_listen
- { '--listen 6266' => lambda { URI('http://localhost:6266') },
+ { '--listen 6266' => -> { URI('http://localhost:6266') },
"--listen --sync --bind 'start:execute-silent:echo $FZF_PORT > /tmp/fzf-port'" =>
- lambda { URI("http://localhost:#{File.read('/tmp/fzf-port').chomp}") } }.each do |opts, fn|
+ -> { URI("http://localhost:#{File.read('/tmp/fzf-port').chomp}") } }.each do |opts, fn|
tmux.send_keys "seq 10 | fzf #{opts}", :Enter
tmux.until { |lines| assert_equal 10, lines.item_count }
Net::HTTP.post(fn.call, 'change-query(yo)+reload(seq 100)+change-prompt:hundred> ')