zsh-autosuggestions/spec/integrations/client_zpty_spec.rb
2017-02-16 19:19:30 -07:00

11 lines
344 B
Ruby

describe 'a running zpty command' do
it 'is not affected by running zsh-autosuggestions' do
session.run_command('zmodload zsh/zpty')
session.run_command('zpty -b kitty cat')
session.run_command('zpty -w kitty cat')
sleep 1
session.run_command('zpty -r kitty')
wait_for(session.content).to end_with("\ncat")
end
end