rspec / rspec-support

Common code needed by the other RSpec gems. Not intended for direct use.
https://rspec.info
MIT License
95 stars 104 forks source link

Distinct last positional argument hashes from keywords on Ruby 3 #537

Open JonRowe opened 2 years ago

JonRowe commented 2 years ago

This is a solution attempt for #536

On Ruby 3 we can (with effort) distinguish between a last positional hash and a keyword hash, because the mixed behaviour we can get on other Rubies shouldn't happen.