Permalink
Browse files

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

  • Loading branch information...
1 parent 8088477 commit a654ef2ee11142f3764fb312aa84a979adb890d9 @spastorino spastorino committed with NZKoz Apr 9, 2010
@@ -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

0 comments on commit a654ef2

Please sign in to comment.