def generate(kind = nil, *args, &block)
      if kind.kind_of?(Symbol)
        # expect(subject).to generate(:file, ...)
        call_action(kind, *args, &block)
      else
        # expect(subject).to generate("vendor/plugins/will_paginate/init.rb")
        GenSpec::Matchers::ResultMatcher.new(kind, &block)
      end
    end
def generate(kind = nil, *args, &block)
      if kind.kind_of?(Symbol)
        # expect(subject).to generate(:file, ...)
        call_action(kind, *args, &block)
      else
        # expect(subject).to generate("vendor/plugins/will_paginate/init.rb")
        GenSpec::Matchers::ResultMatcher.new(kind, &block)
      end
    end
Valid types: :dependency, :class_collisions, :file, :template, :complex_template, :directory, :readme,
 :migration_template, :route_resources

 Examples:
   expect(subject).to generate(:file, ...)
   expect(subject).to generate("vendor/plugins/will_paginate/init.rb")