From 255359dbb8c7ec3f3437cf29a54e0869e38d9713 Mon Sep 17 00:00:00 2001 From: Eric Freese Date: Sat, 18 Feb 2017 10:35:30 -0700 Subject: [PATCH] Use `+=` to be a bit more true to the spec language --- spec/options/widget_lists_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/options/widget_lists_spec.rb b/spec/options/widget_lists_spec.rb index 3e03acf..c62196d 100644 --- a/spec/options/widget_lists_spec.rb +++ b/spec/options/widget_lists_spec.rb @@ -2,7 +2,7 @@ describe 'a zle widget' do let(:before_sourcing) { -> { session.run_command('my-widget() {}; zle -N my-widget; bindkey ^B my-widget') } } context 'when added to ZSH_AUTOSUGGEST_ACCEPT_WIDGETS' do - let(:options) { ['ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=(my-widget)'] } + let(:options) { ['ZSH_AUTOSUGGEST_ACCEPT_WIDGETS+=(my-widget)'] } it 'accepts the suggestion when invoked' do with_history('echo hello') do @@ -15,7 +15,7 @@ describe 'a zle widget' do end context 'when added to ZSH_AUTOSUGGEST_CLEAR_WIDGETS' do - let(:options) { ['ZSH_AUTOSUGGEST_CLEAR_WIDGETS=(my-widget)'] } + let(:options) { ['ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(my-widget)'] } it 'clears the suggestion when invoked' do with_history('echo hello') do @@ -28,7 +28,7 @@ describe 'a zle widget' do end context 'when added to ZSH_AUTOSUGGEST_EXECUTE_WIDGETS' do - let(:options) { ['ZSH_AUTOSUGGEST_EXECUTE_WIDGETS=(my-widget)'] } + let(:options) { ['ZSH_AUTOSUGGEST_EXECUTE_WIDGETS+=(my-widget)'] } it 'executes the suggestion when invoked' do with_history('echo hello') do