--0016e6d27ed1e8d29e0467bf40de
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On Fri, Apr 17, 2009 at 1:09 PM, Fernando Perez <pedrolito / lavache.com>wrote:

> 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/.
>
>
some_object.expects(:expected_method).never

Regards,
Ben

--0016e6d27ed1e8d29e0467bf40de--