module Rails::Generators::Testing::Behaviour::ClassMethods

def tests(klass)

tests AppGenerator

Sets which generator should be tested:
def tests(klass)
  self.generator_class = klass
end