method

destination

rails latest stable - Class: Rails::Generators::Testing::Behavior::ClassMethods
destination(path)
public

Sets the destination of generator files:

destination File.expand_path("../tmp", __dir__)