zsh-autosuggestions/spec/strategies/default_spec.rb

9 lines
250 B
Ruby
Raw Normal View History

2017-02-17 03:18:03 +01:00
describe 'the default suggestion strategy' do
it 'suggests the last matching history entry' do
with_history('ls foo', 'ls bar', 'echo baz') do
session.send_string('ls')
wait_for { session.content }.to eq('ls bar')
end
end
end