[mocha-developer] Insure a method is called with no arguments.

Duncan Beevers duncanbeevers at gmail.com
Thu Oct 25 15:16:53 EDT 2007


We've been working with the ParameterMatchers (so cool!) but I don't
see a way to insure a method is called with no arguments.

I imagined something like:

user = mock('User')
user.expects(:friends).with(nothing)

Anyone run into this?


More information about the mocha-developer mailing list