summaryrefslogtreecommitdiff
path: root/home-config/zsh/zsh-autosuggestions/spec/integrations/client_zpty_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/zsh/zsh-autosuggestions/spec/integrations/client_zpty_spec.rb')
-rw-r--r--home-config/zsh/zsh-autosuggestions/spec/integrations/client_zpty_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/home-config/zsh/zsh-autosuggestions/spec/integrations/client_zpty_spec.rb b/home-config/zsh/zsh-autosuggestions/spec/integrations/client_zpty_spec.rb
new file mode 100644
index 0000000..b8abb37
--- /dev/null
+++ b/home-config/zsh/zsh-autosuggestions/spec/integrations/client_zpty_spec.rb
@@ -0,0 +1,14 @@
+describe 'a running zpty command' do
+ let(:before_sourcing) { -> { session.run_command('zmodload zsh/zpty && zpty -b kitty cat') } }
+
+ context 'when using `completion` strategy' do
+ let(:options) { ["ZSH_AUTOSUGGEST_STRATEGY=completion"] }
+
+ it 'is not affected' do
+ session.send_keys('a').send_keys('C-h')
+ session.run_command('zpty -t kitty; echo $?')
+
+ wait_for { session.content }.to end_with("\n0")
+ end
+ end
+end