Testing a generator in a Rails engine can result in unwanted modifications of files in the test/dummy
directory.
# lib/generators/my_engine/install_generator.rb
module MyEngine
module Generators
class InstallGenerator < Rails::Generators::Base
source_root File.expand_path("templates", __dir__)