From 1535f1f3e562d8331f5b2b99771e62c54f275569 Mon Sep 17 00:00:00 2001 From: Arnaud Venturi Date: Mon, 7 May 2018 13:05:36 +0200 Subject: [PATCH] Started to add a test --- .../integrations/vicmd_partial_accept_spec.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 spec/integrations/vicmd_partial_accept_spec.rb diff --git a/spec/integrations/vicmd_partial_accept_spec.rb b/spec/integrations/vicmd_partial_accept_spec.rb new file mode 100644 index 0000000..f645890 --- /dev/null +++ b/spec/integrations/vicmd_partial_accept_spec.rb @@ -0,0 +1,19 @@ +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 + session.send_string('fo').send_keys('s').send_keys('e') + wait_for { session.content }.to eq('foobar') + end + end + end +end