RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

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!

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.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in