blob: 1a4c80fafb4535c664be52e807c977d787f98380 (
plain) (
tree)
|
|
require 'generators/generators_test_helper'
require 'generators/rails/generator/generator_generator'
class GeneratorGeneratorTest < GeneratorsTestCase
arguments %w(awesome)
def test_generator_skeleton_is_created
run_generator
%w(
lib/generators/awesome
lib/generators/awesome/USAGE
lib/generators/awesome/templates
).each{ |path| assert_file path }
assert_file "lib/generators/awesome/awesome_generator.rb",
/class AwesomeGenerator < Rails::Generators::NamedBase/
end
end
|