Fix test extensions

This commit is contained in:
Adam Stankiewicz 2019-03-10 18:49:28 +01:00
parent 1d9a032a66
commit 0475f2b8d1

View File

@ -10,12 +10,14 @@ describe "My Vim plugin" do
extensions = extensions.split(/[\n,]/) extensions = extensions.split(/[\n,]/)
extensions.each do |ext| extensions.each do |ext|
it "should parse #{ext} file" do if ext.match?(/[a-z\.]+/i)
Timeout::timeout(20) do it "should parse #{ext} file" do
write_file "#{ext}", "" Timeout::timeout(20) do
vim.edit "#{ext}" write_file "#{ext}", ""
vim.insert "sample" vim.edit "#{ext}"
vim.write vim.insert "sample"
vim.write
end
end end
end end
end end