diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-01-10 14:32:02 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2026-05-09 15:16:03 +0900 |
| commit | 963085bcb978b8d6b2d2afe38cccb38ee58f4fcc (patch) | |
| tree | 0064577a5d9968948023ac70624728606f99f38a | |
| parent | c61a2f79f45b5a1b470a7c86dca1e8cff7393658 (diff) | |
[ruby/syntax_suggest] Resolve to lint failure of standardrb
https://github.com/ruby/syntax_suggest/commit/ce7b87184e
| -rw-r--r-- | spec/syntax_suggest/integration/syntax_suggest_spec.rb | 6 |
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 |
