mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-12-16 10:11:25 +01:00
14 lines
364 B
Ruby
14 lines
364 B
Ruby
|
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
|