Skip to content

chore(firestore): support Ruby 3.2 Hash#inspect output in samples tests - #36722

Open
torreypayne wants to merge 1 commit into
mainfrom
chore/firestore-samples-hash-inspect
Open

torreypayne wants to merge 1 commit into
mainfrom
chore/firestore-samples-hash-inspect

Conversation

@torreypayne

Copy link
Copy Markdown
Member

Updates google-cloud-firestore sample acceptance assertions (get_data_test.rb and quickstart_test.rb) to accept both pre-Ruby 3.4 (:key=>val) and Ruby 3.4+ (key: val) Hash#inspect formatting via a shared assert_hash_entry helper in acceptance/helper.rb.

Fixes samples-oldest (Ruby 3.2) failures without breaking Ruby 3.4+/4.0. Verified rubocop and assertion behavior across Ruby 3.2, 3.3, and 4.0.

Related to b/552162906 and b/580634043.

@torreypayne
torreypayne requested review from a team and yoshi-approver as code owners November 14, 2026 00:05

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