diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/loading_spec.rb | 28 | ||||
-rwxr-xr-x | spec/spec_helper.rb | 20 |
2 files changed, 0 insertions, 48 deletions
diff --git a/spec/loading_spec.rb b/spec/loading_spec.rb deleted file mode 100644 index e9e1f3b8..00000000 --- a/spec/loading_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -require 'spec_helper' -require 'timeout' - -describe "My Vim plugin" do - - extensions = `cat ftdetect/polyglot.vim | grep '^au' | tr "\t" ' ' | cut -d ' ' -f 3 | grep -v / | grep -v '^\*$' | grep -v '^$'`.strip - - extensions.gsub!(/\[(.).+\]/) { $1 }.gsub!('*', 'test') - - extensions = extensions.split(/[\n,]/) - - extensions.sort!.uniq!.each do |ext| - 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 - - after(:all) do - vim.kill - end -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb deleted file mode 100755 index 21ab43cc..00000000 --- a/spec/spec_helper.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'vimrunner' -require 'vimrunner/rspec' - -$plugin_path = File.expand_path('../..', __FILE__) - -Vimrunner::RSpec.configure do |config| - config.reuse_server = false - - # Decide how to start a Vim instance. In this block, an instance should be - # spawned and set up with anything project-specific. - config.start_vim do - vim = Vimrunner.start - - # Setup your plugin in the Vim instance - vim.add_plugin($plugin_path) - - # The returned value is the Client available in the tests. - vim - end -end |