zsh-autosuggestions/spec/integrations/rebound_bracket_spec.rb

15 lines
399 B
Ruby
Raw Normal View History

2017-07-17 22:45:48 +02:00
describe 'rebinding [' do
context 'initialized before sourcing the plugin' do
before do
2017-08-01 20:43:22 +02:00
session.send_string("function [ { $commands[\\[] \"$@\" }")
2017-07-17 22:45:48 +02:00
session.send_keys("'enter'")
2017-08-01 20:43:22 +02:00
session.clear_screen
2017-07-17 22:45:48 +02:00
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