Yup, i've learnt from my other thread that the specs for "controller", "view" and "helper" have been depreciated.
Any recommended way to ensure my helpers work as expected in my request specs ? I'm using shared specs to do it now, but repeated executing of these shared specs, even under different requests, makes me wonder if it is a waste of computing resources. TKS == On Thu, Oct 30, 2008 at 6:04 AM, Michael Klishin <[EMAIL PROTECTED]> wrote: > > 2008/10/29 ngty <[EMAIL PROTECTED]>: >> >> I'm currently looking into writing specs for my helpers for my 1st >> merb app, and i've looked through the merb-helpers' spec/ >> merb_helpers_form_spec.rb for info on how to write such helper specs. >> Any thoughts ? > > Use real objects and views for specs. Fortunately in the application > it is easier to do because you have models in some particular domain. > > merb-helpers spec suite is under yet another rewrite because (I want > to stress it) mock-like objects do not test a thing. Forget about TDD > best practices, mocks should be avoided as much as possible if you > want your tests to test anything at all. > > One look at famous FakeDMModel class with properties foo and bar > class in merb-helpers makes you understand why merb-helpers has tons > and tons of bugs, and nobody understands how it supposed to work. > -- > MK > > > > -- http://ngty77.blogspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
