When running tests in Rails, sometimes you need to perform various tasks in the database directly which can lead to a lot of unwanted messages in your test output.
If you’re using Postgresql, simply add the following line to your
Now you’ll only see messages of ERROR and above in your test output.
Found a better way to do this. In your database.yml file, simply add the following line to your :test section.