Add #raises_error? method to Proc