Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.6.0 (2024-11-24) External changes * Expectation with never cardinality should display deprecation warning (#681) - thanks to @ducmtran for reporting and testing WARNING: This release results in some incorrect deprecation warnings: * The logic for displaying the deprecation warnings is fixed in v2.6.1 (#686). Internal changes * Simplify backtrace related assertions (#680) * Remove unused ExpectationList#match_but_out_of_order (f2fa9919) 2.6.1 (2024-11-28) External changes * Fix logic for displaying deprecation warning for expectation with never cardinality (#686) - thanks to @davidstosik for reporting 2.7.0 (2024-12-07) External changes * Fail fast if invocation matches never expectation (#679, #678, #490, #131 & #44) - thanks to @ducmtran & @davidstosik for reporting Internal changes * Workaround for JRuby jar-dependencies issue (#690) * Ruby v3.4 stacktrace uses single-quote vs backtick (#688 & #689) - thanks to Vít Ondruch WARNING: This release fixes a very old bug * The bug relates to the use of Expectation#never in combination with other expectations on the same method. * Please ensure you fix the relevant deprecation warnings when running against v2.6.1 before upgrading to v2.7.0. * Previously, the following test would have passed, but now it will fail with an unexpected invocation error on the foo.bar line. foo = mock('foo') foo.stubs(:bar) foo.expects(:bar).never foo.bar 2.7.1 (2024-12-09) External changes * Deprecate Configuration#stubbing_method_on_nil= (#694) * Indicate when parameter matcher logic is defined by block passed to Expectation#with (#698, b30e4434) * Improve documentation for Expectation#with, especially when it is passed a block (#698, #682, #606 & #681)
- Loading branch information