You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
expect_warn_deprecation matches any message when there's raise_error(RSpec::Expectations::ExpectationNotMetError) in the example.
Might affect other rspec-support deprecation matcher helpers.
Your environment
Ruby version: 2.7.1
rspec-expectations version: d1239222 (main)
Steps to reproduce
Original code:
it'prints a deprecation warning when given a value and negated'doexpect_warn_deprecation(/complete nonsense/)expect{expect(3).not_tomatcher}.tofailend
There are no tests for the whole file, it's tricky to write, takes me a while.
Since we're nearing that moment when deprecation messages are becoming extremely important to properly cover, I'll handle this ASAP.
pirj
transferred this issue from rspec/rspec-expectations
Dec 15, 2020
Subject of the issue
expect_warn_deprecation
matches any message when there'sraise_error(RSpec::Expectations::ExpectationNotMetError)
in the example.Might affect other rspec-support deprecation matcher helpers.
Your environment
Steps to reproduce
Original code:
Simplification:
Expected behavior
or
Actual behavior
:aggregate_failures
fixes the issue with the first expectation, it is now printed, but now the inner failure is propagated.The text was updated successfully, but these errors were encountered: