From: Fernando Perez Date: 2009-04-17T21:09:40+09:00 Subject: Mocha: does_not_expect Hi, I am writing tests for a Rails app using Test::Unit and Mocha. expects does a great job to make sure a method is called. But how to handle the fact that a method shouldn't be called? I have a before filter that protects the call to a given restricted method, and how to make sure that this method doesn't get called unexpectedly? -- Posted via http://www.ruby-forum.com/.