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

Support parsing of dynamic fixture erb yml files #158

Merged
merged 5 commits into from
Oct 21, 2024

Conversation

drwl
Copy link
Owner

@drwl drwl commented Oct 8, 2024

This PR adds support for dynamic fixtures, which are yml files with Ruby code in them. Rails supports this so we also want to support this.

Before this change, Ruby's yml parser, Psych, would raise Psych::SyntaxError when attempting to parse non-valid yml. This change attempts to parse yml normally, but if it fails will run the input through the Erb evaluator and then attempt to parse the output using Psych.

Addresses #149

@drwl drwl merged commit 2d9f516 into main Oct 21, 2024
22 checks passed
@drwl drwl deleted the drwl/149-support-dynamic-fixtures branch October 21, 2024 01:28
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