Update capture warnings script to use rspec hooks