diff options
author | dmathieu <42@dmathieu.com> | 2011-05-24 13:18:27 +0200 |
---|---|---|
committer | dmathieu <42@dmathieu.com> | 2011-05-24 13:18:27 +0200 |
commit | 3d9d9f86f5fa8aa84373d066dae0cab1396170ac (patch) | |
tree | f8ab5cbd551d933ec01afa28bf2af26ddee9a4db /railties/test | |
parent | b8118ef492b68e95e71285e9a19f9c701a7d3c36 (diff) | |
download | rails-3d9d9f86f5fa8aa84373d066dae0cab1396170ac.tar.gz rails-3d9d9f86f5fa8aa84373d066dae0cab1396170ac.tar.bz2 rails-3d9d9f86f5fa8aa84373d066dae0cab1396170ac.zip |
create the dummy app if there's no test_unit but there's a dummy_path
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 779e362d75..5ffc2501cd 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -182,6 +182,13 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase assert_file "spec/dummy/config/application.rb" assert_no_file "test/dummy" end + + def test_creating_dummy_without_tests_but_with_dummy_path + run_generator [destination_root, "--dummy_path", "spec/dummy", "--skip-test-unit"] + assert_file "spec/dummy" + assert_file "spec/dummy/config/application.rb" + assert_no_file "test" + end def test_skipping_gemspec run_generator [destination_root, "--skip-gemspec"] |