reduced repetition in rspec tests