I have some RSpec tests for my models and I would like to turn on SQL ActiveRecord logging just like I see in the Rails server mode. How to do that?
I start my tests wit
if others answers don't work in your case, please check the 'log level' of your test environment.
its default is 'debug', which will output the SQL generated by Rails. if it was set to "info", the SQL will be missing.