diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-01-10 14:32:02 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-03-23 11:00:31 +0900 |
| commit | 46194e291c956a082a4a4778648c9f81a457c029 (patch) | |
| tree | ac82e36bf0aa4ddae4709efb4e19a0427fc8361f | |
| parent | 847413d15e81351cdce0eaad0180cb51173f3cd3 (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 |
