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