From e7c7efe2e21ba355dc88869d294cc9440a021ebf Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Mon, 15 Apr 2019 12:46:21 -0600 Subject: [PATCH] Set options immediately after sourcing the plugin before next precmd So that you can access defaults to e.g. add elements to an existing array. --- spec/spec_helper.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abea917..cb149ef 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -11,8 +11,7 @@ RSpec.shared_context 'terminal session' do around do |example| before_sourcing.call - session.run_command(options.join('; ')) - session.run_command('source zsh-autosuggestions.zsh') + session.run_command(['source zsh-autosuggestions.zsh', *options].join('; ')) after_sourcing.call session.clear_screen