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 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
