From 963085bcb978b8d6b2d2afe38cccb38ee58f4fcc Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 10 Jan 2025 14:32:02 +0900 Subject: [ruby/syntax_suggest] Resolve to lint failure of standardrb https://github.com/ruby/syntax_suggest/commit/ce7b87184e --- spec/syntax_suggest/integration/syntax_suggest_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3