diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-17 15:17:50 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-17 15:17:50 +0100 |
commit | 58136e1bd359ce71275eb8e8e5c20d1c9b286b85 (patch) | |
tree | 8009bf113554cf255d17316e128031805ddc7717 /railties/test/generators | |
parent | e3898bda9cb0e6d7e63cd8f6d4ecec96209bfd4d (diff) | |
download | rails-58136e1bd359ce71275eb8e8e5c20d1c9b286b85.tar.gz rails-58136e1bd359ce71275eb8e8e5c20d1c9b286b85.tar.bz2 rails-58136e1bd359ce71275eb8e8e5c20d1c9b286b85.zip |
Plugin generator should use templates.
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/plugin_generator_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb index f84b8b6d50..2989cdb67d 100644 --- a/railties/test/generators/plugin_generator_test.rb +++ b/railties/test/generators/plugin_generator_test.rb @@ -6,12 +6,27 @@ class PluginGeneratorTest < GeneratorsTestCase def test_plugin_skeleton_is_created run_generator + year = Date.today.year %w( vendor/plugins vendor/plugins/plugin_fu + vendor/plugins/plugin_fu/init.rb + vendor/plugins/plugin_fu/install.rb + vendor/plugins/plugin_fu/uninstall.rb vendor/plugins/plugin_fu/lib + vendor/plugins/plugin_fu/lib/plugin_fu.rb ).each{ |path| assert_file path } + + %w( + vendor/plugins/plugin_fu/README + vendor/plugins/plugin_fu/Rakefile + ).each{ |path| assert_file path, /PluginFu/ } + + %w( + vendor/plugins/plugin_fu/README + vendor/plugins/plugin_fu/MIT-LICENSE + ).each{ |path| assert_file path, /#{year}/ } end def test_check_class_collision |