mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove unnecessary readme in dummy application
`README` it is changed to `README.rdoc` in 6b126e2
, it has been changed to` README.md` further 89a12c9.
This commit is contained in:
parent
b9d1e101b4
commit
65590e3c96
2 changed files with 14 additions and 1 deletions
|
@ -117,7 +117,7 @@ task default: :test
|
|||
remove_file "Gemfile"
|
||||
remove_file "lib/tasks"
|
||||
remove_file "public/robots.txt"
|
||||
remove_file "README"
|
||||
remove_file "README.md"
|
||||
remove_file "test"
|
||||
remove_file "vendor"
|
||||
end
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue