rafamvc rafamvc - 7 months ago 29
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