diff --git a/spec/syntax_suggest/unit/explain_syntax_spec.rb b/spec/syntax_suggest/unit/explain_syntax_spec.rb index 76437bc74059e9..c62a42b925ed6b 100644 --- a/spec/syntax_suggest/unit/explain_syntax_spec.rb +++ b/spec/syntax_suggest/unit/explain_syntax_spec.rb @@ -14,11 +14,7 @@ module SyntaxSuggest ).call expect(explain.missing).to eq([]) - if SyntaxSuggest.use_prism_parser? - expect(explain.errors.join).to include("Expected a closing delimiter for the interpolated string") - else - expect(explain.errors.join).to include("unterminated string") - end + expect(explain.errors.join.strip).to_not be_empty end it "handles %w[]" do