turn off sql logging in rspec code example Example: activerecord logger ActiveRecord::Base.logger = Logger.new(STDOUT)