Skip to content

Commit 63f8d1d

Browse files
authored
Merge pull request #212 from ruby/schneems/fix-ruby-ruby-failure
Change assertion to not rely on exact text from prism
2 parents 457c1eb + 4b6abb7 commit 63f8d1d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

spec/unit/explain_syntax_spec.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ module SyntaxSuggest
1414
).call
1515

1616
expect(explain.missing).to eq([])
17-
if SyntaxSuggest.use_prism_parser?
18-
expect(explain.errors.join).to include("Expected a closing delimiter for the interpolated string")
19-
else
20-
expect(explain.errors.join).to include("unterminated string")
21-
end
17+
expect(explain.errors.join.strip).to_not be_empty
2218
end
2319

2420
it "handles %w[]" do

0 commit comments

Comments
 (0)