diff options
Diffstat (limited to 'spec/loading_spec.rb')
-rw-r--r-- | spec/loading_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/loading_spec.rb b/spec/loading_spec.rb new file mode 100644 index 00000000..459f0720 --- /dev/null +++ b/spec/loading_spec.rb @@ -0,0 +1,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 |