2 ways to test Rails log messages with RSpec | Left of the Dev
If you're like me and don't need to test log output on a regular basis, you may not find the solutions to be immediately obvious. Here are two ways (that I know of) to approach the problem.