summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-05-20 19:47:48 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-05-20 19:47:48 +0900
commitc511b45ff652ebee4a9b0b48e65b05558c7474c8 (patch)
tree88a233e730da3ccda14587271a5ed60fc2fdcbe6
parent40761b11b1d535c5de1b18f6c4e2c26932a990b3 (diff)
Minor tweak in test case
It may take long for find command to spot the temporary file created on the home directory
-rw-r--r--test/test_go.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_go.rb b/test/test_go.rb
index b6be9e04..36ef6854 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**<TAB>
@@ -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