refactor beers_spec