How to test logs using RSpec expectations and StringIO in Ruby
22-Feb-2019 2266
Testing what is logged when you application is run can be done with testing method calls to your logger or using StringIO to capture and examine its output as a string.
How to test logs using RSpec expectations and StringIO in Ruby #ruby #rubydeveloper #rubyonrails #using #RSpec #expectations #StringIO #rspec #test https://rubyonrails.ba/link/how-to-test-logs-using-rspec-expectations-and-stringio-in-ruby