RSpec shared to eliminate duplication