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

Use assert_template_result partials option to specify file system state #1620

Merged
merged 2 commits into from Sep 13, 2022

Conversation

dylanahsmith
Copy link
Contributor

#1614 added a partials option to assert_template_result along with a sample usage of it.

This PR uses that option more extensively to avoid the use of the Liquid::Template.file_system = global state mutation to test with a given file system state for language tests. This also makes these tests easier to understand, by keeping the relevant file system state together with the test that uses it.

@dylanahsmith dylanahsmith merged commit bb70271 into master Sep 13, 2022
@dylanahsmith dylanahsmith deleted the use-partials-test-option branch September 13, 2022 19:36
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.

None yet

2 participants