Skip to content

RUBY-3872 Fix put_double TypeError message regex for Ruby head#373

Open
comandeo-mongo wants to merge 1 commit into
mongodb:masterfrom
comandeo-mongo:RUBY-3872
Open

RUBY-3872 Fix put_double TypeError message regex for Ruby head#373
comandeo-mongo wants to merge 1 commit into
mongodb:masterfrom
comandeo-mongo:RUBY-3872

Conversation

@comandeo-mongo

Copy link
Copy Markdown
Contributor

Changes

Update the put_double TypeError message regex in spec/bson/byte_buffer_write_spec.rb to accept both the old and new Ruby TypeError wording.

Ruby head changed the message from:

  • no implicit conversion to float from string (Ruby ≤ 3.4)

to:

  • no implicit conversion of String into Float (Ruby head)

The regex now covers both MRI forms plus the existing JRuby ClassCastException form. No production code changes.

Files changed

  • spec/bson/byte_buffer_write_spec.rb — regex on line 511 extended

Test plan

  • bundle exec rspec spec/bson/byte_buffer_write_spec.rb — 87 examples, 0 failures

Jira: https://jira.mongodb.org/browse/RUBY-3872

@comandeo-mongo comandeo-mongo marked this pull request as ready for review June 19, 2026 13:32
@comandeo-mongo comandeo-mongo requested a review from a team as a code owner June 19, 2026 13:32
@comandeo-mongo comandeo-mongo requested a review from jamis June 19, 2026 13:32
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