module GeneratorSpec::GeneratorExampleGroup::InstanceMethods

def run_generator(args=self.default_arguments, config={})

printed by the generator.
You can provide a configuration hash as second argument. This method returns the output

end
end
assert_no_file "config/database.yml"
run_generator %w(myapp --skip-active-record)
test "database.yml is not created when skipping Active Record" do

teardown :cleanup_destination_root
destination File.expand_path("../tmp", File.dirname(__FILE__))
tests AppGenerator
class AppGeneratorTest < Rails::Generators::TestCase

command line arguments:
Runs the generator configured for this class. The first argument is an array like
def run_generator(args=self.default_arguments, config={})
  capture(:stdout) { self.generator_class.start(args, config.reverse_merge(:destination_root => destination_root)) }
end