From de4256a63b26ff50b5741d5fbf1cec67b38963c7 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Fri, 11 Jan 2019 18:58:05 -0700 Subject: [PATCH] Enable zle -U test in newer zsh versions --- spec/integrations/zle_input_stack_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/integrations/zle_input_stack_spec.rb b/spec/integrations/zle_input_stack_spec.rb index 12cfbc7..05a609f 100644 --- a/spec/integrations/zle_input_stack_spec.rb +++ b/spec/integrations/zle_input_stack_spec.rb @@ -9,8 +9,9 @@ describe 'using `zle -U`' do let(:options) { ['unset ZSH_AUTOSUGGEST_USE_ASYNC', 'ZSH_AUTOSUGGEST_STRATEGY=test'] } - # TODO: This is only possible with the $KEYS_QUEUED_COUNT widget parameter, coming soon... - xit 'does not fetch a suggestion for every inserted character' do + it 'does not fetch a suggestion for every inserted character' do + skip 'KEYS_QUEUED_COUNT not supported below v5.4.0' if session.zsh_version < Gem::Version.new('5.4.0') + session.send_keys('C-b') wait_for { session.content }.to eq('echo hello') end