summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/syntax_suggest/unit/explain_syntax_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/syntax_suggest/unit/explain_syntax_spec.rb b/spec/syntax_suggest/unit/explain_syntax_spec.rb
index 76437bc740..c62a42b925 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