Skip to content

Use Struct instead of OpenStruct in tests - #88

Open
wtn wants to merge 1 commit into
ruby:masterfrom
wtn:dep
Open

wtn wants to merge 1 commit into
ruby:masterfrom
wtn:dep

Conversation

@wtn

@wtn wtn commented Nov 16, 2026

Copy link
Copy Markdown

On Ruby 4.0:

$ bundle exec rake test
#=> cannot load such file -- ostruct (LoadError)

The tests don't really need ostruct, so this commit drops it.

test_parse227 and test_parse229 used OpenStruct only for a fake socket and now use two Struct classes. The require "ostruct" lines in test_mlsx_entry.rb and test_buffered_socket.rb were unused.

ostruct is a bundled gem in Ruby 4.0 and is not in the Gemfile, so
`bundle exec rake test` fails with a LoadError.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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