This commit is contained in:
Kaleb Elwert 2017-09-26 14:33:30 +00:00 committed by GitHub
commit 8b8d56a232
7 changed files with 60 additions and 46 deletions

View file

@ -0,0 +1,14 @@
describe 'rebinding [' do
context 'initialized before sourcing the plugin' do
before do
session.send_string("function [ { $commands[\\[] \"$@\" }")
session.send_keys("'enter'")
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