DBMS_OUTPUT.PUT_LINE ('Hello!!!');I open the console
ruby script/console testcheck the enable_dbms_output field is true or not By running the command
ActiveRecord::Base.connectionIf it is not true then reset to true by running below command before your testcase.
ActiveRecord::Base.connection.enable_dbms_outputthen you can see the dbms_output statements in test.log file.