Skip to content

Commit af72bb5

Browse files
hsbtEarlopain
authored andcommitted
[ruby/syntax_suggest] Resolve to lint failure of standardrb
ruby/syntax_suggest@ce7b87184e
1 parent e5f21d5 commit af72bb5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

spec/syntax_suggest/integration/syntax_suggest_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
module SyntaxSuggest
66
RSpec.describe "Integration tests that don't spawn a process (like using the cli)" do
7+
before(:each) do
8+
skip "Benchmark is not available" unless defined?(::Benchmark)
9+
end
10+
711
it "does not timeout on massive files" do
812
next unless ENV["SYNTAX_SUGGEST_TIMEOUT"]
913

@@ -235,5 +239,5 @@ def bar
235239
end_is_missing_here
236240
EOM
237241
end
238-
end if defined?(::Benchmark)
242+
end
239243
end

0 commit comments

Comments
 (0)