Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3287 from sgerrand/vendor_assets_javascripts_shou…

…ld_be_created

Ensure that the directory 'vendor/assets/javascripts' is created by AppGenerator
  • Loading branch information...
commit f6c93495650ac9ff400d59ba91287876088e6d11 2 parents 2cb2ca6 + 84672b0
José Valim josevalim authored
5 railties/lib/rails/generators/rails/app/app_generator.rb
View
@@ -122,10 +122,15 @@ def tmp
end
def vendor
+ vendor_javascripts
vendor_stylesheets
vendor_plugins
end
+ def vendor_javascripts
+ empty_directory_with_gitkeep "vendor/assets/javascripts"
+ end
+
def vendor_stylesheets
empty_directory_with_gitkeep "vendor/assets/stylesheets"
end
5 railties/test/generators/app_generator_test.rb
View
@@ -203,6 +203,11 @@ def test_creation_of_a_test_directory
assert_file 'test'
end
+ def test_creation_of_vendor_assets_javascripts_directory
+ run_generator
+ assert_file "vendor/assets/javascripts"
+ end
+
def test_jquery_is_the_default_javascript_library
run_generator
assert_file "app/assets/javascripts/application.js" do |contents|
Please sign in to comment.
Something went wrong with that request. Please try again.