aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikac.hu>2013-02-06 01:03:17 -0500
committerPrem Sichanugrist <s@sikac.hu>2013-03-09 16:03:55 -0500
commit1a0c58b2988a24a783b4f9a658ac629922125551 (patch)
tree200137e5963c4bb96c22642b2d9e6135bc98cf5e /railties/lib/rails/generators
parent176b57c5430ddae7668114994c35b3293b0a05a5 (diff)
downloadrails-1a0c58b2988a24a783b4f9a658ac629922125551.tar.gz
rails-1a0c58b2988a24a783b4f9a658ac629922125551.tar.bz2
rails-1a0c58b2988a24a783b4f9a658ac629922125551.zip
Load fixtures only when running suites, or `-f`
* `rails test -f` will run the test suites with all fixtures loaded * New application will now generated without `fixtures :all` line enabled by default.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/test/test_helper.rb5
1 files changed, 3 insertions, 2 deletions
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
index 9afda2d0df..754e99e09f 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
@@ -6,11 +6,12 @@ class ActiveSupport::TestCase
<% unless options[:skip_active_record] -%>
ActiveRecord::Migration.check_pending!
- # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
+ # Uncomment the `fixtures` line below to setup all fixtures in test/fixtures/*.yml 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
- fixtures :all
+ # fixtures :all
<% end -%>
# Add more helper methods to be used by all tests here...