diff --git a/spec/integrations/rebound_bracket_spec.rb b/spec/integrations/rebound_bracket_spec.rb new file mode 100644 index 0000000..f2c2fb9 --- /dev/null +++ b/spec/integrations/rebound_bracket_spec.rb @@ -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