diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-24 04:59:28 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-24 04:59:28 -0700 |
commit | cedadad8911a0201891eeb9efc7682d2f2468c3b (patch) | |
tree | f8ab5cbd551d933ec01afa28bf2af26ddee9a4db /railties/test | |
parent | b8118ef492b68e95e71285e9a19f9c701a7d3c36 (diff) | |
parent | 3d9d9f86f5fa8aa84373d066dae0cab1396170ac (diff) | |
download | rails-cedadad8911a0201891eeb9efc7682d2f2468c3b.tar.gz rails-cedadad8911a0201891eeb9efc7682d2f2468c3b.tar.bz2 rails-cedadad8911a0201891eeb9efc7682d2f2468c3b.zip |
Merge pull request #1262 from dmathieu/dummy_without_tests
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"] |