SyntaxFix
Write A Post
Hire A Developer
Questions
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