zsh-autosuggestions/spec/integrations/vicmd_partial_accept_spec.rb

20 lines
533 B
Ruby
Raw Normal View History

2018-05-07 13:05:36 +02:00
describe 'a vicmd mode partial-accept widget' do
let(:widget) { 'vi-forward-word-end' }
context 'in vicmd mode' do
# -> do
# let(:before_sourcing) do
# session.
# end
# end
it 'moves the cursor through suggestion as expected' do
session.run_command("bindkey s vi-cmd-mode")
with_history('foobar foo') do
2018-05-07 13:19:42 +02:00
session.send_string('fo').send_keys('s').send_keys('e').send_keys('a').send_string('plop')
wait_for { session.content }.to eq('foobarplop')
2018-05-07 13:05:36 +02:00
end
end
end
end