aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-01-23 15:45:34 +0100
committerYves Senn <yves.senn@gmail.com>2015-01-28 12:29:34 +0100
commitd28e5b94a7ef90cd9e569f5c12485814fcadd70a (patch)
treec483c37f26a98e4bad4671869067bf6f07216cc6 /railties/lib/rails/generators/rails
parent71a84206ab4d3488ac0d522a7375efc67301aae5 (diff)
downloadrails-d28e5b94a7ef90cd9e569f5c12485814fcadd70a.tar.gz
rails-d28e5b94a7ef90cd9e569f5c12485814fcadd70a.tar.bz2
rails-d28e5b94a7ef90cd9e569f5c12485814fcadd70a.zip
introduce `ActiveSupport::Testing::FileFixtures`.
It's a thin layer to provide easy access to sample files throughout test-cases. This adds the directory `test/fixtures/files` to newly generated applications.
Diffstat (limited to 'railties/lib/rails/generators/rails')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index 0550bf113e..6b5f9090a2 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -125,6 +125,7 @@ module Rails
def test
empty_directory_with_keep_file 'test/fixtures'
+ empty_directory_with_keep_file 'test/fixtures/files'
empty_directory_with_keep_file 'test/controllers'
empty_directory_with_keep_file 'test/mailers'
empty_directory_with_keep_file 'test/models'