aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails/app/templates/test/test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/generators/rails/app/templates/test/test_helper.rb')
-rw-r--r--railties/lib/generators/rails/app/templates/test/test_helper.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/railties/lib/generators/rails/app/templates/test/test_helper.rb b/railties/lib/generators/rails/app/templates/test/test_helper.rb
new file mode 100644
index 0000000000..45b551fc7d
--- /dev/null
+++ b/railties/lib/generators/rails/app/templates/test/test_helper.rb
@@ -0,0 +1,13 @@
+ENV["RAILS_ENV"] = "test"
+require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
+require 'rails/test_help'
+
+class ActiveSupport::TestCase
+ # 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
+ fixtures :all
+
+ # Add more helper methods to be used by all tests here...
+end