title: What is the difference between stubs and mocks in the context of test spy? (jasmine)
body: <p>I was reading this document <a href="http://sinonjs.org/docs/" rel="nofollow noreferrer">sinonjs.org</a> and to me is not clear the different between stubs and mocks.<br>
  Could someone explain me with simple words and some example the difference between stubs and mocks?</p>
  
  <p>P.S.:<br>
  I already read about <a href="https://stackoverflow.com/questions/5764981/what-is-the-difference-between-mocks-and-stubs-jmock">What is the difference between mocks and stubs ( JMock)</a>, but the answers have no examples. </p>