On 20.10.2008, at 2.50, Matt Aimonetti wrote:
Hi Ashley,You might want to check on http://www.slideshare.net/wycats/testing-merb-presentation Yehuda's presentation on testing Merb apps the Merb way.If you generate a new 1.0RC app and then a resource you will notice that we don't generate any controller or view specs anymore. The reason being that we believe you should test the full request ad not just mock what the controller does.
Could you elaborate with the decision a bit, since I smell there's a bit of a conflict with the Rspec/BDD ideas here? It seems to me that the new way of testing in Merb is exactly the same as using story runner/Cucumber, except that it doesn't really test the whole stack like using stories with Webrat does.
Also, are you still encouraging unit testing for models or do you think the full-request testing should take care of testing them as well?
//jarkko -- Jarkko Laine http://jlaine.net http://dotherightthing.com http://odesign.fiCheck out my latest book, Unobtrusive Prototype, fresh off the Peepcode oven:
http://peepcode.com/products/unobtrusive-prototype-js
smime.p7s
Description: S/MIME cryptographic signature
