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