diff options
Diffstat (limited to 'home-config/zsh/zsh-autosuggestions/spec/integrations/rebound_bracket_spec.rb')
-rw-r--r-- | home-config/zsh/zsh-autosuggestions/spec/integrations/rebound_bracket_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/home-config/zsh/zsh-autosuggestions/spec/integrations/rebound_bracket_spec.rb b/home-config/zsh/zsh-autosuggestions/spec/integrations/rebound_bracket_spec.rb new file mode 100644 index 0000000..8b420f0 --- /dev/null +++ b/home-config/zsh/zsh-autosuggestions/spec/integrations/rebound_bracket_spec.rb @@ -0,0 +1,13 @@ +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 |