Version 2.0.0 drops support for Ruby below 3, and changes the supported RSpec version to "main" and current release series. (At the time of writing this is 3.13.x, but it means the current supported release only).
Breaking changes:
- Now uses
public_send
so that private methods will not be accidentally reachable. (James Ottaway #33, #101)
Bug fixes:
- Prevent overridden
example
methods causing issues by creating our own Example Group creation alias__its_example
. (Jon Rowe, #95)
Enhancements:
- Introduced
will
andwill_not
as to allow one line block expectations. (Russ Buchanan, #67)
Breaking Changes:
Enhancements:
- Introduced
are_expected
as alias foris_expected
Bug fixes:
- Restored ability to pass key/value metadata parameters, broken by https://github.com/rspec/rspec-its/commit/71307bc7051f482bfc2798daa390bee9142b0d5a
Breaking Changes:
Enhancements:
- For hashes, multiple array elements are treated as successive access keys
- Metadata arguments are now supported
Bug fixes:
- Enable
its
example selection by line number in command line
Bug fixes:
- Maintain implicit subject in all cases (addresses problem with latest RSpec 3 version)
Breaking Changes:
Enhancements:
- Add
is_expected
support to match RSpec 3.0
Deprecations:
Bug Fixes:
- Report failures and backtrace from client perspective
Features
- Initial extraction of
its()
functionality to separate gem