blob: 99d7fe2973212d9dda4771fc0bc60871834721dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'spec_helper'
describe "My Vim plugin" do
languages = Dir["#{$plugin_path}/syntax/*.vim"].map { |f| f.split('/').last.gsub('.vim', '') }
languages.each do |lang|
it "should parse .#{lang} file" do
write_file "test.#{lang}", ""
vim.edit "test.#{lang}"
vim.insert "sample"
vim.write
end
end
end
|