diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-10-23 19:41:56 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-10-23 19:41:56 +0900 |
commit | 65590e3c968b81f78c2ff33945ba819f607391d8 (patch) | |
tree | 322e076d312d1e157c9a23548a0f8ce036c5538f /railties/test | |
parent | b9d1e101b4982dd9c9359b2824589c3783effa26 (diff) | |
download | rails-65590e3c968b81f78c2ff33945ba819f607391d8.tar.gz rails-65590e3c968b81f78c2ff33945ba819f607391d8.tar.bz2 rails-65590e3c968b81f78c2ff33945ba819f607391d8.zip |
remove unnecessary readme in dummy application
`README` it is changed to `README.rdoc` in 6b126e2, it has been changed to` README.md` further 89a12c9.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/plugin_generator_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb index a19a29056d..715debf344 100644 --- a/railties/test/generators/plugin_generator_test.rb +++ b/railties/test/generators/plugin_generator_test.rb @@ -440,6 +440,19 @@ class PluginGeneratorTest < Rails::Generators::TestCase end end + def test_unnecessary_files_are_not_generated_in_dummy_application + run_generator + assert_no_file 'test/dummy/.gitignore' + assert_no_file 'test/dummy/db/seeds.rb' + assert_no_file 'test/dummy/Gemfile' + assert_no_file 'test/dummy/public/robots.txt' + assert_no_file 'test/dummy/README.md' + assert_no_directory 'test/dummy/lib/tasks' + assert_no_directory 'test/dummy/doc' + assert_no_directory 'test/dummy/test' + assert_no_directory 'test/dummy/vendor' + end + def test_skipping_test_files run_generator [destination_root, "--skip-test"] assert_no_file "test" |