Skip to content

Commit 9b405d7

Browse files
committed
Update to latest Prism syntax error messages
1 parent 2f16599 commit 9b405d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/ruby/language/pattern_matching_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
in []
208208
end
209209
RUBY
210-
}.should raise_error(SyntaxError, /syntax error, unexpected `in'|\(eval\):3: syntax error, unexpected keyword_in|cannot parse the expression/)
210+
}.should raise_error(SyntaxError, /syntax error, unexpected `in'|\(eval\):3: syntax error, unexpected keyword_in|unexpected 'in'/)
211211

212212
-> {
213213
eval <<~RUBY
@@ -216,7 +216,7 @@
216216
when 1 == 1
217217
end
218218
RUBY
219-
}.should raise_error(SyntaxError, /syntax error, unexpected `when'|\(eval\):3: syntax error, unexpected keyword_when|cannot parse the expression/)
219+
}.should raise_error(SyntaxError, /syntax error, unexpected `when'|\(eval\):3: syntax error, unexpected keyword_when|unexpected 'when'/)
220220
end
221221

222222
it "checks patterns until the first matching" do

0 commit comments

Comments
 (0)