In Putting the Pieces Together, we saw RSpec’s not_to and to_not methods, which specify that a given condition should not hold:
If you find yourself doing this over and over again, you can define a negated matcher that you’d use like so:
It’s easy to create your own negated matcher. All you have to do is call define_negated_matcher:
As with alias_matcher, you pass the name of ...