Sometimes when I do unit tests or cucumber tests I'll encounter an error that I've roughly aware of the offending code but not sure which files it resides in. That's where grep comes in useful.
Search for occurrences of ".name" in view files recursively
grep '.name' -r app/views
Get occurrences with its surrounding 2 lines before and after
No comments:
Post a Comment