rafamvc rafamvc - 1 year ago 45
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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download