summaryrefslogtreecommitdiff
path: root/home-config/zsh/zsh-autosuggestions/spec/integrations/auto_cd_spec.rb
blob: 94bd24b0f017409c6176e7d74ba5bb1511ac5b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
describe 'with `AUTO_CD` option set' do
  let(:after_sourcing) do
    -> {
      session.run_command('setopt AUTO_CD')
      session.run_command('autoload compinit && compinit')
    }
  end

  it 'directory names are still completed' do
    session.send_string('sr')
    session.send_keys('C-i')
    wait_for { session.content }.to eq('src/')
  end
end