1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Plugin generator should use templates.

This commit is contained in:
José Valim 2010-01-17 15:17:50 +01:00
parent e3898bda9c
commit 58136e1bd3
4 changed files with 15 additions and 0 deletions

View file

@ -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