summaryrefslogtreecommitdiff
path: root/spec/syntax_suggest/integration/syntax_suggest_spec.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2025-01-10 14:32:02 +0900
committergit <[email protected]>2025-01-10 05:38:39 +0000
commite8015ce1a36a7c8b88dd66850d3df7b8881f2f1c (patch)
treecfb2909e7f0e4e30d5ccb2246fdb4e637dc7c7dd /spec/syntax_suggest/integration/syntax_suggest_spec.rb
parenta450e9304db8e540977958ddb5c60a65363a4ea9 (diff)
[ruby/syntax_suggest] Resolve to lint failure of standardrb
https://github.com/ruby/syntax_suggest/commit/ce7b87184e
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