[mocha-developer] Howto find out, a function was called

James Mead jamesmead44 at gmail.com
Thu Mar 15 15:33:06 EDT 2007


I'm not entirely sure I follow your code, but can you not do something
like...

def test_me
  object.expects(:sync)

  BlaObserver.ignore do
    object.save
  end
end

or

def test_me
  object.expects(:sync).never

  BlaObserver.ignore do
    object.save
  end
end

-- 
James.
http://blog.floehopper.org


More information about the mocha-developer mailing list