diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 18:49:28 +0100 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-03-10 18:49:28 +0100 | 
| commit | 0475f2b8d193fa2e69752f7ed40b381c54f858c9 (patch) | |
| tree | e46ed292e342301e0733676207e4bf0389dd5003 | |
| parent | 1d9a032a66739f900970d9b335b854fe93a4a5f3 (diff) | |
| download | vim-polyglot-0475f2b8d193fa2e69752f7ed40b381c54f858c9.tar.gz vim-polyglot-0475f2b8d193fa2e69752f7ed40b381c54f858c9.zip | |
Fix test extensions
Diffstat (limited to '')
| -rw-r--r-- | spec/loading_spec.rb | 14 | 
1 files changed, 8 insertions, 6 deletions
| diff --git a/spec/loading_spec.rb b/spec/loading_spec.rb index 6e1cbaae..ec4f7262 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 | 
