simpler, ruby 2 compatible assertions