Hi again

Ok, so I'm having a little research fling with JavaScript, and I've uncovered something I hadn't seen before: "spying". Basically, inspecting mocks after-the-fact, rather than setting expectations upfront.

Here are the articles I found:
http://ajaxian.com/archives/mockme-a-new-javascript-mocking-framework
http://blog.johanneslink.net/2008/08/08/ajax-travelogue-part-6-mocking-in-javascript/
http://blog.johanneslink.net/2008/08/09/ajax-travelogue-part-7-mockme/

Does anyone know more about this technique, and its pros and cons vs expectation-based mocking as used in RSpec mocks?

Thanks for any info
Ashley

--
http://www.patchspace.co.uk/
http://aviewfromafar.net/

_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to