Skip to content

Add regression test for heredoc with trailing arguments - #117

Merged
marcoroth merged 1 commit into
mainfrom
worktree-heredoc-expression-test
Aug 8, 2026
Merged

Add regression test for heredoc with trailing arguments#117
marcoroth merged 1 commit into
mainfrom
worktree-heredoc-expression-test

Conversation

@marcoroth

@marcoroth marcoroth commented Aug 8, 2026

Copy link
Copy Markdown
Owner

The compiled Ruby for an ERB expression containing a heredoc needs the closing parenthesis on its own line after the heredoc terminator. That is handled by Herb::Engine#trailing_newline, but the handler override in ReActionView::Template::Handlers::Herb::Herb#add_expression had no test covering it.

Ported from #78 by @pinzonjulian, which is otherwise obsolete since the fix landed upstream in marcoroth/herb#1206.

Resolves #78

The compiled Ruby for an ERB expression containing a heredoc needs the
closing parenthesis on its own line after the heredoc terminator. That
is handled by `Herb::Engine#trailing_newline`, but the handler override
in `ReActionView::Template::Handlers::Herb::Herb#add_expression` had no
test covering it.

Ported from #78 by @pinzonjulian, which is otherwise obsolete since the
fix landed upstream in marcoroth/herb#1206.

Co-authored-by: Juli谩n Pinz贸n Eslava <julian@buildkite.com>
@marcoroth
marcoroth merged commit 5406a75 into main Aug 8, 2026
24 checks passed
@marcoroth
marcoroth deleted the worktree-heredoc-expression-test branch August 8, 2026 03:42
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.

1 participant