mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
the folder public/javascripts should be created by default [#4027 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
@@ -138,8 +138,11 @@ module Rails::Generators
|
||||
end
|
||||
|
||||
def create_prototype_files
|
||||
return if options[:skip_prototype]
|
||||
directory "public/javascripts"
|
||||
unless options[:skip_prototype]
|
||||
directory "public/javascripts"
|
||||
else
|
||||
empty_directory_with_gitkeep "public/javascripts"
|
||||
end
|
||||
end
|
||||
|
||||
def create_script_files
|
||||
|
||||
@@ -107,6 +107,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
||||
def test_prototype_and_test_unit_are_skipped_if_required
|
||||
run_generator [destination_root, "--skip-prototype", "--skip-testunit"]
|
||||
assert_no_file "public/javascripts/prototype.js"
|
||||
assert_file "public/javascripts"
|
||||
assert_no_file "test"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user