Skip to content

Commit ce7b871

Browse files
committed
Resolve to lint failure of standardrb
1 parent ea73ed5 commit ce7b871

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/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)