DRYing out rspec code somewhat