rafamvc rafamvc - 5 months ago 24
Ruby Question

Is there a "not_expects" for mocha/rspec?

I need to make sure a method is not called giving a specific set of conditions, and I'm
looking for the opposite of the mocha expects.

Answer Source

Look at mocha's never or rspec's should_not_receive and should_receive(:selector).exactly(n).times