From c511b45ff652ebee4a9b0b48e65b05558c7474c8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 20 May 2015 19:47:48 +0900 Subject: [PATCH] Minor tweak in test case It may take long for find command to spot the temporary file created on the home directory --- test/test_go.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_go.rb b/test/test_go.rb index b6be9e0..36ef685 100644 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -585,7 +585,7 @@ module CompletionTest FileUtils.mkdir_p '/tmp/fzf-test' FileUtils.mkdir_p '/tmp/fzf test' (1..100).each { |i| FileUtils.touch "/tmp/fzf-test/#{i}" } - ['no~such~user', '/tmp/fzf test/foobar', '~/fzf-home'].each do |f| + ['no~such~user', '/tmp/fzf test/foobar', '~/.fzf-home'].each do |f| FileUtils.touch File.expand_path(f) end tmux.prepare @@ -602,12 +602,12 @@ module CompletionTest tmux.send_keys 'C-u' tmux.send_keys "cat ~#{ENV['USER']}**", :Tab, pane: 0 tmux.until(1) { |lines| lines.item_count > 0 } - tmux.send_keys 'fzf-home' - tmux.until(1) { |lines| lines[-3].end_with? 'fzf-home' } + tmux.send_keys '.fzf-home' + tmux.until(1) { |lines| lines[-3].end_with? '.fzf-home' } tmux.send_keys :Enter tmux.until do |lines| tmux.send_keys 'C-L' - lines[-1].end_with?('fzf-home') + lines[-1].end_with?('.fzf-home') end # ~INVALID_USERNAME** @@ -630,7 +630,7 @@ module CompletionTest lines[-1].end_with?('/tmp/fzf\ test/foobar') end ensure - ['/tmp/fzf-test', '/tmp/fzf test', '~/fzf-home', 'no~such~user'].each do |f| + ['/tmp/fzf-test', '/tmp/fzf test', '~/.fzf-home', 'no~such~user'].each do |f| FileUtils.rm_rf File.expand_path(f) end end