aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-04-09 08:47:19 +0200
committerJosé Valim <jose.valim@gmail.com>2010-04-09 08:47:19 +0200
commitcb8fa3573c7cfcbc8a59acb6cfbde99f71dcccaa (patch)
tree271a2e2e65b176a56d5c5e7a120543ae48d25f58 /railties
parenta654ef2ee11142f3764fb312aa84a979adb890d9 (diff)
downloadrails-cb8fa3573c7cfcbc8a59acb6cfbde99f71dcccaa.tar.gz
rails-cb8fa3573c7cfcbc8a59acb6cfbde99f71dcccaa.tar.bz2
rails-cb8fa3573c7cfcbc8a59acb6cfbde99f71dcccaa.zip
Still use the directory command and also remove the fixture comments.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb12
-rw-r--r--railties/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt (renamed from railties/lib/rails/generators/rails/app/templates/test/test_helper.rb)4
2 files changed, 3 insertions, 13 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index 6d085f0935..df6e98f38d 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -157,17 +157,7 @@ module Rails::Generators
def create_test_files
return if options[:skip_testunit]
- empty_directory "test"
-
- inside "test" do
- template "test_helper.rb"
-
- directory "fixtures"
- directory "functional"
- directory "integration"
- directory "performance"
- directory "unit"
- end
+ directory "test"
end
def create_tmp_files
diff --git a/railties/lib/rails/generators/rails/app/templates/test/test_helper.rb b/railties/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt
index c5e9cc2fc3..86564031f5 100644
--- a/railties/lib/rails/generators/rails/app/templates/test/test_helper.rb
+++ b/railties/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt
@@ -3,13 +3,13 @@ require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
class ActiveSupport::TestCase
+<% unless options[:skip_activerecord] -%>
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
#
# Note: You'll currently still have to declare fixtures explicitly in integration tests
# -- they do not yet inherit this setting
-<% unless options[:skip_activerecord] -%>
fixtures :all
-<% end -%>
+<% end -%>
# Add more helper methods to be used by all tests here...
end