mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Add simple test to avoid regressions
This commit is contained in:
parent
9378c28134
commit
3cfe7c4c59
1 changed files with 14 additions and 0 deletions
14
spec/integrations/rebound_bracket_spec.rb
Normal file
14
spec/integrations/rebound_bracket_spec.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
describe 'rebinding [' do
|
||||
context 'initialized before sourcing the plugin' do
|
||||
before do
|
||||
session.send_string("function [ { test \"$@\" }")
|
||||
session.send_keys("'enter'")
|
||||
session.run_command("clear")
|
||||
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
|
Loading…
Reference in a new issue