mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Still use the directory command and also remove the fixture comments.
This commit is contained in:
parent
a654ef2ee1
commit
cb8fa3573c
2 changed files with 3 additions and 13 deletions
|
@ -157,17 +157,7 @@ module Rails::Generators
|
||||||
|
|
||||||
def create_test_files
|
def create_test_files
|
||||||
return if options[:skip_testunit]
|
return if options[:skip_testunit]
|
||||||
empty_directory "test"
|
directory "test"
|
||||||
|
|
||||||
inside "test" do
|
|
||||||
template "test_helper.rb"
|
|
||||||
|
|
||||||
directory "fixtures"
|
|
||||||
directory "functional"
|
|
||||||
directory "integration"
|
|
||||||
directory "performance"
|
|
||||||
directory "unit"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_tmp_files
|
def create_tmp_files
|
||||||
|
|
|
@ -3,13 +3,13 @@ require File.expand_path('../../config/environment', __FILE__)
|
||||||
require 'rails/test_help'
|
require 'rails/test_help'
|
||||||
|
|
||||||
class ActiveSupport::TestCase
|
class ActiveSupport::TestCase
|
||||||
|
<% unless options[:skip_activerecord] -%>
|
||||||
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
# 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
|
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
||||||
# -- they do not yet inherit this setting
|
# -- they do not yet inherit this setting
|
||||||
<% unless options[:skip_activerecord] -%>
|
|
||||||
fixtures :all
|
fixtures :all
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
|
<% end -%>
|
||||||
# Add more helper methods to be used by all tests here...
|
# Add more helper methods to be used by all tests here...
|
||||||
end
|
end
|
Loading…
Reference in a new issue