Permalink
Browse files

the folder public/javascripts should be created by default [#4027 sta…

…tus:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 36a2346 commit 79c47abe6ce0bdcc81c35aa30da8a05c3650d04d @ramon ramon committed with josevalim Feb 21, 2010
@@ -138,8 +138,11 @@ def create_public_stylesheets_files
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 @@ def test_prototype_and_test_unit_are_added_by_default
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

0 comments on commit 79c47ab

Please sign in to comment.