diff options
author | lest <just.lest@gmail.com> | 2011-11-19 19:03:44 +0200 |
---|---|---|
committer | lest <just.lest@gmail.com> | 2011-11-19 19:09:09 +0200 |
commit | 39d2251d8a3e50bf004b6361e0079679466b2280 (patch) | |
tree | 730fc5f830836cb8b55d31d6b90d7c789854cf08 /railties/test/generators | |
parent | bc04455f1032166e66f5aef06ff2976173ac7da6 (diff) | |
download | rails-39d2251d8a3e50bf004b6361e0079679466b2280.tar.gz rails-39d2251d8a3e50bf004b6361e0079679466b2280.tar.bz2 rails-39d2251d8a3e50bf004b6361e0079679466b2280.zip |
fix rails plugin new CamelCasedName bug
refs #3684
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index b70f9f4d9c..826eac904e 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -37,6 +37,12 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase assert_file "things-43/lib/things-43.rb", /module Things43/ end + def test_camelcase_plugin_name_underscores_filenames + run_generator [File.join(destination_root, "CamelCasedName")] + assert_no_file "CamelCasedName/lib/CamelCasedName.rb" + assert_file "CamelCasedName/lib/camel_cased_name.rb", /module CamelCasedName/ + end + def test_generating_without_options run_generator assert_file "README.rdoc", /Bukkits/ |