How to test logs using RSpec expectations and StringIO in Ruby

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 #rspec #test https://rubyonrails.ba/single/how-to-test-logs-using-rspec-expectations-and-stringio-in-ruby

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles