binding.pry is incredibly useful for debugging Rails apps (spec tests as well).
- When debugging spec tests, debug within an
it block scope.
Once within the debugger:
- You can access variables by typing in the variable name
- Grep larger variable output for faster identification