dotfiles-guix/home-config/zsh/zsh-autosuggestions/spec/integrations/rebound_bracket_spec.rb

14 lines
364 B
Ruby
Raw Normal View History

2023-09-05 03:21:01 +00:00
describe 'rebinding [' do
context 'initialized before sourcing the plugin' do
before do
session.run_command("function [ { $commands[\\[] \"$@\" }")
session.clear_screen
end
it 'executes the custom behavior and the built-in behavior' do
session.send_string('asdf')
wait_for { session.content }.to eq('asdf')
end
end
end