summaryrefslogtreecommitdiff
path: root/home-config/zsh/zsh-autosuggestions/spec/integrations/rebound_bracket_spec.rb
blob: 8b420f068c16cbe28f815434eb424e44563745f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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