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
Hi, there is an error when you add .by(..) to your expect {}.not_to change(some, :attr), like expect {}.not_to change(some, :attr).by(1) that says "NotImplementedError: expect { }.not_to change { }.by() is not supported" and.., it's really not good, because you see the first things that say "You can use change matcher with the block" but you miss that there is a problem 'cause you forget to delete or just added .by(..) to your matcher.
My solution:
To change the error message like to this: Hey, you cannot use '.by(1)' in your <code> matcher, it is not supported, delete it or change matcher, please.
*Would be fun if the message can be like this, please ^-^
The text was updated successfully, but these errors were encountered:
Hi, there is an error when you add
.by(..)
to yourexpect {}.not_to change(some, :attr)
, likeexpect {}.not_to change(some, :attr).by(1)
that says "NotImplementedError:expect { }.not_to change { }.by()
is not supported" and.., it's really not good, because you see the first things that say "You can usechange
matcher with the block" but you miss that there is a problem 'cause you forget to delete or just added.by(..)
to your matcher.My solution:
To change the error message like to this:
Hey, you cannot use '.by(1)' in your <code> matcher, it is not supported, delete it or change matcher, please
.*Would be fun if the message can be like this, please ^-^
The text was updated successfully, but these errors were encountered: