2 ways to test Rails log messages with RSpec
If you 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 use RSpec to test messages sent to the Rails log.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
If you 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 use RSpec to test messages sent to the Rails log.
Post a comment