Skip to content

fix: set name locations for after/before in the minitest rewriter - #256

Merged
emidoots merged 1 commit into
scip-ruby/masterfrom
christoph/fix-minitest-before-after-locs
Sep 3, 2026
Merged

fix: set name locations for after/before in the minitest rewriter#256
emidoots merged 1 commit into
scip-ruby/masterfrom
christoph/fix-minitest-before-after-locs

Conversation

@christoph-sg

@christoph-sg christoph-sg commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Make sure the minitest rewriter emits valid locations. For nodes like before/after, which aren't follow by a name/argument we emitted the none span which caused crashes downstream.

Test plan

Updated snapshot test

@emidoots I hope this is a cleaner fix for the issue we observed

@emidoots emidoots left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, yours looks nicer and less defensive 😄 Thank you for taking a look @christoph-sg !

@emidoots
emidoots merged commit 6de7f47 into scip-ruby/master Sep 3, 2026
3 checks passed
@emidoots
emidoots deleted the christoph/fix-minitest-before-after-locs branch September 3, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants