mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05:00
Fix assertions in test_dynamic_completion_loader
This commit is contained in:
@@ -1767,9 +1767,7 @@ class TestBash < TestBase
|
|||||||
tmux.paste '_completion_loader() { complete -o default fake; }'
|
tmux.paste '_completion_loader() { complete -o default fake; }'
|
||||||
tmux.paste 'complete -F _fzf_path_completion -o default -o bashdefault fake'
|
tmux.paste 'complete -F _fzf_path_completion -o default -o bashdefault fake'
|
||||||
tmux.send_keys 'fake /tmp/foo**', :Tab
|
tmux.send_keys 'fake /tmp/foo**', :Tab
|
||||||
tmux.until do |lines|
|
tmux.until { |lines| lines.item_count.positive? }
|
||||||
lines.item_count.positive? && lines.item_count == lines.match_count
|
|
||||||
end
|
|
||||||
tmux.send_keys 'C-c'
|
tmux.send_keys 'C-c'
|
||||||
|
|
||||||
tmux.prepare
|
tmux.prepare
|
||||||
@@ -1778,9 +1776,7 @@ class TestBash < TestBase
|
|||||||
|
|
||||||
tmux.prepare
|
tmux.prepare
|
||||||
tmux.send_keys 'fake /tmp/foo**', :Tab
|
tmux.send_keys 'fake /tmp/foo**', :Tab
|
||||||
tmux.until do |lines|
|
tmux.until { |lines| lines.item_count.positive? }
|
||||||
lines.item_count.positive? && lines.item_count == lines.match_count
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user