Skip to content
Browse files

generate 'app/assets/images' directory when creating new rails app

  • Loading branch information...
1 parent efaecad commit f354ad1b69188009b5dc2827f19f634730fcf923 @NARKOZ NARKOZ committed May 3, 2013
View
1 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -56,6 +56,7 @@ def gitignore
def app
directory 'app'
+ keep_file 'app/assets/images'
keep_file 'app/mailers'
keep_file 'app/models'
View
0 railties/lib/rails/generators/rails/app/templates/app/assets/images/.keep
No changes.
View
5 railties/test/generators/app_generator_test.rb
@@ -260,6 +260,11 @@ def test_creation_of_a_test_directory
assert_file 'test'
end
+ def test_creation_of_app_assets_images_directory
+ run_generator
+ assert_file "app/assets/images"
+ end
+
def test_creation_of_vendor_assets_javascripts_directory
run_generator
assert_file "vendor/assets/javascripts"

0 comments on commit f354ad1

Please sign in to comment.
Something went wrong with that request. Please try again.