Same as title: How to get Rails.logger printing to the console/stdout when running rspec? Eg.
Rails.logger
Rails.logger.info \"I WANT this to go to console/s
You can define a method in spec_helper.rb that sends a message both to Rails.logger.info and to puts and use that for debugging:
def log_test(message) Rails.logger.info(message) puts message end