zsh-autosuggestions/spec/strategies/history_spec.rb

13 lines
341 B
Ruby
Raw Permalink Normal View History

require 'strategies/special_characters_helper'
describe 'the `history` suggestion strategy' do
2017-02-17 03:18:03 +01:00
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
include_examples 'special characters'
end