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

Change World Index spec to compare hashes, not JSON string #3013

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

brucebolt
Copy link
Member

The world index spec if currently comparing JSON strings, which means the test has to specify the keys in exactly the same order as they are included in the JSON.

Additionally, rspec doesn't give a useful diff when this test fails when comparing JSON strings, like it would with a hash.

Therefore changing this spec to compare hashes, like we are doing in the other GraphQL integration tests.

The world index spec if currently comparing JSON strings, which means
the test has to specify the keys in exactly the same order as they are
included in the JSON.

Additionally, rspec doesn't give a useful diff when this test fails when
comparing JSON strings, like it would with a hash.

Therefore changing this spec to compare hashes, like we are doing in the
other GraphQL integration tests.
@brucebolt brucebolt marked this pull request as ready for review December 2, 2024 13:28
@brucebolt brucebolt merged commit 4b998c9 into main Dec 2, 2024
13 checks passed
@brucebolt brucebolt deleted the update-world-spec branch December 2, 2024 14:04
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