diff --git a/spec/loading_spec.rb b/spec/loading_spec.rb index ec4f726..4d78f53 100644 --- a/spec/loading_spec.rb +++ b/spec/loading_spec.rb @@ -10,7 +10,7 @@ describe "My Vim plugin" do extensions = extensions.split(/[\n,]/) extensions.each do |ext| - if ext.match?(/[a-z\.]+/i) + if ext.match?(/^[a-z\.]+$/i) it "should parse #{ext} file" do Timeout::timeout(20) do write_file "#{ext}", ""