Mercurial > dotfiles
comparison .zfun/zsh-autosuggestions/spec/options/async_zpty_name_spec.rb @ 467:e1ce8897030d
zsh: import df6f6f9ff41 of zsh-autosuggestions
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 03 Dec 2018 22:37:29 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
466:f248cf012d9a | 467:e1ce8897030d |
---|---|
1 context 'when async suggestions are enabled' do | |
2 let(:options) { ["ZSH_AUTOSUGGEST_USE_ASYNC="] } | |
3 | |
4 describe 'the zpty for async suggestions' do | |
5 it 'is created with the default name' do | |
6 session.run_command('zpty -t zsh_autosuggest_pty &>/dev/null; echo $?') | |
7 wait_for { session.content }.to end_with("\n0") | |
8 end | |
9 | |
10 context 'when ZSH_AUTOSUGGEST_ASYNC_PTY_NAME is set' do | |
11 let(:options) { super() + ['ZSH_AUTOSUGGEST_ASYNC_PTY_NAME=foo_pty'] } | |
12 | |
13 it 'is created with the specified name' do | |
14 session.run_command('zpty -t foo_pty &>/dev/null; echo $?') | |
15 wait_for { session.content }.to end_with("\n0") | |
16 end | |
17 end | |
18 end | |
19 end |