summaryrefslogtreecommitdiff
path: root/home-config/zsh/zsh-autosuggestions/spec/integrations/glob_subst_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/zsh/zsh-autosuggestions/spec/integrations/glob_subst_spec.rb')
-rw-r--r--home-config/zsh/zsh-autosuggestions/spec/integrations/glob_subst_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/home-config/zsh/zsh-autosuggestions/spec/integrations/glob_subst_spec.rb b/home-config/zsh/zsh-autosuggestions/spec/integrations/glob_subst_spec.rb
new file mode 100644
index 0000000..c3dd671
--- /dev/null
+++ b/home-config/zsh/zsh-autosuggestions/spec/integrations/glob_subst_spec.rb
@@ -0,0 +1,12 @@
+describe 'with `GLOB_SUBST` option set' do
+ let(:after_sourcing) do
+ -> {
+ session.run_command('setopt GLOB_SUBST')
+ }
+ end
+
+ it 'error messages are not printed' do
+ session.send_string('[[')
+ wait_for { session.content }.to eq('[[')
+ end
+end