class Rails::Generators::TestCase

end
setup :prepare_destination
destination File.expand_path(“../tmp”, __dir__)
tests AppGenerator
class AppGeneratorTest < Rails::Generators::TestCase
you can set a setup callback:
If you want to ensure your destination root is clean before running each test,
end
destination File.expand_path(“../tmp”, __dir__)
tests AppGenerator
class AppGeneratorTest < Rails::Generators::TestCase
just to configure the destination and set which generator is being tested:
This class provides a TestCase for testing generators. To set up, you need