Add simple test to avoid regressions

This commit is contained in:
Kaleb Elwert 2017-07-17 13:45:48 -07:00
parent 9378c28134
commit 3cfe7c4c59

View 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