DRY up specs a bit with shared_examples