I have been practicing TDD in C# for several years now and recently have moved to Ruby on Rails full time. I am continuing the practice of TDD with RSpec. My question is regarding the process of finding references while refactoring. In Visual Studio I was addicted to Resharper’s “find all references” when renaming or replacing methods.
How do test driven practitioners in ruby find references to methods when replacing/renaming/etc?
I realize because ruby is a dynamic language a “find all references” IDE function would not work, so any I am looking for a shift in thinking as much as a simple solution.
Thanks
– Lee
Have you tried doing a “Search in Project”? (Cmd+Shift+F). It allows you to search and replace, with regexp support and works, and should work just how you need (if I recall correctly how Resharper used to work).
It can get kinda slow with big projects, though, so be sure to checkout both Awk in Project or Grep in Project (although -at least for the last one- not sure if they deal only with searching)