summaryrefslogtreecommitdiff
path: root/spec/syntax_suggest/integration/syntax_suggest_spec.rb
diff options
Diffstat (limited to 'spec/syntax_suggest/integration/syntax_suggest_spec.rb')
-rw-r--r--spec/syntax_suggest/integration/syntax_suggest_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/syntax_suggest/integration/syntax_suggest_spec.rb b/spec/syntax_suggest/integration/syntax_suggest_spec.rb
index d9772225af..015d088c92 100644
--- a/spec/syntax_suggest/integration/syntax_suggest_spec.rb
+++ b/spec/syntax_suggest/integration/syntax_suggest_spec.rb
@@ -4,6 +4,10 @@ require_relative "../spec_helper"
module SyntaxSuggest
RSpec.describe "Integration tests that don't spawn a process (like using the cli)" do
+ before(:each) do
+ skip "Benchmark is not available" unless defined?(::Benchmark)
+ end
+
it "does not timeout on massive files" do
next unless ENV["SYNTAX_SUGGEST_TIMEOUT"]
@@ -235,5 +239,5 @@ module SyntaxSuggest
end_is_missing_here
EOM
end
- end if defined?(::Benchmark)
+ end
end