diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2013-12-27 00:06:18 +0100 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-12-27 00:06:18 +0100 | 
| commit | 6b8c72637f4c414e11ca52d054ebe8690285113e (patch) | |
| tree | 5958272794d099c39624f28aa44db926eb8ab0ba | |
| parent | d330fdc01bd3cb45b792693fd4d474d5e2ec7f84 (diff) | |
| download | vim-polyglot-6b8c72637f4c414e11ca52d054ebe8690285113e.tar.gz vim-polyglot-6b8c72637f4c414e11ca52d054ebe8690285113e.zip | |
Set timeout on test cases
| -rw-r--r-- | spec/loading_spec.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/spec/loading_spec.rb b/spec/loading_spec.rb index 26d39418..265ba828 100644 --- a/spec/loading_spec.rb +++ b/spec/loading_spec.rb @@ -1,5 +1,5 @@  require 'spec_helper' -require 'tempfile' +require 'timeout'  describe "My Vim plugin" do @@ -10,8 +10,8 @@ describe "My Vim plugin" do    extensions = extensions.split(/[\n,]/)    extensions.each do |ext| -    unless ext.match(/styl(us)?$/) -      it "should parse #{ext} file" do +    it "should parse #{ext} file" do +      Timeout::timeout(5) do          write_file "#{ext}", ""          vim.edit "#{ext}"          vim.insert "sample" | 
