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:
parent
e3898bda9c
commit
58136e1bd3
4 changed files with 15 additions and 0 deletions
|
@ -6,12 +6,27 @@ class PluginGeneratorTest < GeneratorsTestCase
|
||||||
|
|
||||||
def test_plugin_skeleton_is_created
|
def test_plugin_skeleton_is_created
|
||||||
run_generator
|
run_generator
|
||||||
|
year = Date.today.year
|
||||||
|
|
||||||
%w(
|
%w(
|
||||||
vendor/plugins
|
vendor/plugins
|
||||||
vendor/plugins/plugin_fu
|
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
|
||||||
|
vendor/plugins/plugin_fu/lib/plugin_fu.rb
|
||||||
).each{ |path| assert_file path }
|
).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
|
end
|
||||||
|
|
||||||
def test_check_class_collision
|
def test_check_class_collision
|
||||||
|
|
Loading…
Reference in a new issue