sumanth tt wrote: > If we have to check for the internal portions, we do it by inspecting > (raising the variable ) while developing. If we have to do the same job > by tests, how can we do that?
By designing your code for testing, and writing tests on all the little bitty intermediate methods. Without testing, these methods might be private - or worse, they might just be statements embedded in run-on procedures! But testability is more important than privacy, so more things will be public. -- Phlip http://broadcast.oreilly.com/2008/10/testing-rails-partials.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

