Eliminate RSpec duplication with shared examples