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

Ostruct related spec failures #156

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Ostruct related spec failures #156

merged 2 commits into from
Nov 8, 2024

Conversation

bknoles
Copy link
Collaborator

@bknoles bknoles commented Nov 8, 2024

Specs from #152 passed just fine until we merged, and then began to mysteriously fail. The passing specs from the PR offer a clue:

image

It would appear that our test suite was relying on Ruby's json library to load OpenStruct. They stopped explicitly requiring it earlier this year. Github Actions' Ruby 3.3.6 (which is now used in the 3.3 part of the test matrix) must be using that version of the library, so it never gets loaded, causing our error.

This PR just requires openstruct to get things working. it won't be included in the Ruby standard library in 3.5.0, so long term we'll either need to add it to the Gemfile or refactor the specs using it to use something like the new Data class.

@bknoles bknoles merged commit bbb2717 into master Nov 8, 2024
12 checks passed
@bknoles bknoles deleted the ostruct-test-failures branch November 8, 2024 03:21
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