refactor :generator_spec