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

Stop using Liquid::Expression.parse for integration testing #1610

Merged
merged 1 commit into from Sep 1, 2022

Conversation

dylanahsmith
Copy link
Contributor

@dylanahsmith dylanahsmith commented Aug 31, 2022

Depends on Shopify/liquid-c#179 to fix the test error

Problem

liquid-c stopped patching Liquid::Expression.parse in Shopify/liquid-c#178 since it was too implicit, so integration tests using Liquid::Expression.parse weren't actually being shared across implementations.

Solution

Use assert_template_result and assert_match_syntax_error for integration testing, which will better enable us to share tests using it across liquid implementations.

Since liquid-c no longer monkey patches it, so we need a higher-level
tests to ensure they are shared across liquid implementations.
Gemfile Outdated Show resolved Hide resolved
@dylanahsmith dylanahsmith merged commit ca2d850 into master Sep 1, 2022
@dylanahsmith dylanahsmith deleted the expression-integration-test branch September 1, 2022 21:37
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