From 0475f2b8d193fa2e69752f7ed40b381c54f858c9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 10 Mar 2019 18:49:28 +0100 Subject: [PATCH] Fix test extensions --- spec/loading_spec.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/spec/loading_spec.rb b/spec/loading_spec.rb index 6e1cbaa..ec4f726 100644 --- a/spec/loading_spec.rb +++ b/spec/loading_spec.rb @@ -10,12 +10,14 @@ describe "My Vim plugin" do extensions = extensions.split(/[\n,]/) extensions.each do |ext| - it "should parse #{ext} file" do - Timeout::timeout(20) do - write_file "#{ext}", "" - vim.edit "#{ext}" - vim.insert "sample" - vim.write + if ext.match?(/[a-z\.]+/i) + it "should parse #{ext} file" do + Timeout::timeout(20) do + write_file "#{ext}", "" + vim.edit "#{ext}" + vim.insert "sample" + vim.write + end end end end