class RSpec::Mocks::TargetBase
def self.disallow_negation(method)
def self.disallow_negation(method) define_method method do |*args| raise NegationUnsupportedError, "`#{expression}(...).#{method} receive` is not supported since it " + "doesn't really make sense. What would it even mean?" end end