From 3cfe7c4c590d2e13698e776e4d2875bda9f9a789 Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Mon, 17 Jul 2017 13:45:48 -0700 Subject: [PATCH] Add simple test to avoid regressions --- spec/integrations/rebound_bracket_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 spec/integrations/rebound_bracket_spec.rb 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