2009/10/7 Patrick Doyle <[email protected]>: > > I'm sorry if this sounds like a totally newbie question, but... > > Are there good tips and resources for debugging unit tests? > Currently, I just fire up script/console using the "test" environment > and just poke around randomly until I hit upon some inspiration. But > I think there should be a better way, for example, it would be nice to > single step through a particular test case using a debugger in one > window and watching the test log in the other window.
Have a look at the rails guide on debugging. Particularly the section on ruby-debug. Colin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

