提交 a654ef2e 编写于 作者: S Santiago Pastorino 提交者: Michael Koziarski

Don't include fixtures if --skip-activerecord is given

上级 80884779
......@@ -157,7 +157,17 @@ def create_script_files
def create_test_files
return if options[:skip_testunit]
directory "test"
empty_directory "test"
inside "test" do
template "test_helper.rb"
directory "fixtures"
directory "functional"
directory "integration"
directory "performance"
directory "unit"
end
end
def create_tmp_files
......
......@@ -7,7 +7,9 @@ class ActiveSupport::TestCase
#
# 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 -%>
# Add more helper methods to be used by all tests here...
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册