Use an Rspec shared example to eliminate test duplication