Skip to content

Unit tests fail with minitest 6.1.0 (bare hash passed to must_equal) #95

Closed

Description

@kvz

CI is red on every Ruby version since minitest 6.1.0 (released 2026-11-06). The Gemfile and gemspec leave minitest unpinned, so CI now installs 6.1.0; the last green run on main was 2026-10-21.

13 unit tests fail with Use assert_nil if expecting nil., for example:

  • test/unit/transloadit/test_assembly.rb:33 — _(@assembly.steps).must_equal foo: 1
  • test/unit/transloadit/test_assembly.rb:37 — _(@assembly.to_hash).must_equal(auth: …, …)
  • test/unit/transloadit/test_step.rb:32 and :44

minitest 6.1.0 "Removed ruby2_keywords delegation workaround from Spec". A bare hash literal passed to must_equal (must_equal foo: 1) is now taken as keyword arguments instead of the expected value, so the expectation compares against nil. Wrapping the expected hash in braces (must_equal({foo: 1})) should fix it; pinning minitest < 6.1 would be a stopgap.

Found on #94, a Node-version-only change: https://github.com/transloadit/ruby-sdk/actions/runs/43093115423

🤖 Claimed by kvz on framework1/ruby-sdk since 2026-11-12 · resume: codex resume 01a1cf95-44cc-7a03-a63d-fb007674476e

Activity

  1. self-assigned this
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions