I was running some ideas for Dry::Schema when I notice the test suite having errors I never saw in previous versions (2.7 ~ 3.1.x).
Not sure if is something someone is working actively now or even if this need to fixed now. IMO this need to be investigate it (I volunteer myself) because colleagues testing Ruby 3.2 will be reporting the same soon enough - Ruby 3.2 will probably be released next week (Dec 24th, 2022) as the ruby dev team usually does.
The path is being generated without an array index, so that accounts: [{user: {date: nil}}] is being used with #<Dry::Schema::Path keys=[:accounts, :user]> while that should be [:accounts, 0, :user].
The construction of that Path is hard to locate, though, so I’m not certain what the root cause is.
I reran it on 3.2.0 final and this didn’t come up So I guess just nevermind.
I am seeing test failures from some stubs complaining that they received arguments hashes when they expected keyword arguments… I’m guessing that has to do with the rspec-mocks argument forwarding issue.
I can confirm the issue should be gone once rspec-mocks is updated to 3.12.2 which was published yesterday (2023-01-07). No changes needed since ruby 3.2.0 (final) fixes the initial issue and rspec-mocks fixed their issues with ruby 3.2.x on version rspec-mocks v3.12.2