Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add regression test for capture handling in Rails #917

Merged
merged 2 commits into from
Apr 17, 2023
Merged

Add regression test for capture handling in Rails #917

merged 2 commits into from
Apr 17, 2023

Conversation

timriley
Copy link
Contributor

@timriley timriley commented Apr 13, 2023

As discussed with @minad in judofyr/temple#112 (comment), here is a simple regression test intended to catch any issues around the specific intersection of Temple's capture handling and Slim's Rails-specific Temple generator.

Locally, I've tested this against:

And the test passes in both cases.

The goal of adding this test now is to build sufficient confidence before introducing this change to propagate options to nested capture_generators in Temple (judofyr/temple#144).

@minad — this is my first contribution to Slim. Please let me know if you'd like to see anything different here.

@timriley timriley changed the title Add regression test for Rails capture handling Add regression test for capture handling in Rails Apr 14, 2023
@minad minad merged commit c8332b3 into slim-template:main Apr 17, 2023
@timriley timriley deleted the rails-capture-regression-test branch April 23, 2023 13:57
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