diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-11-13 15:23:28 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-11-13 15:23:28 -0500 |
commit | 8dd76a7a6ff1bb7105beabb8f834ca54ab1e5fc2 (patch) | |
tree | 9830dad2b5514f9c1600036a81433266ddec3250 /railties/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt | |
parent | 705cf47033afabf4530a209f907ff4bf35acf2c2 (diff) | |
download | rails-8dd76a7a6ff1bb7105beabb8f834ca54ab1e5fc2.tar.gz rails-8dd76a7a6ff1bb7105beabb8f834ca54ab1e5fc2.tar.bz2 rails-8dd76a7a6ff1bb7105beabb8f834ca54ab1e5fc2.zip |
Use .tt extension to all the template files
Make clear that the files are not to be run for interpreters.
Fixes #23847.
Fixes #30690.
Closes #23878.
Diffstat (limited to 'railties/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt b/railties/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt new file mode 100644 index 0000000000..6ad1f11781 --- /dev/null +++ b/railties/lib/rails/generators/rails/app/templates/test/test_helper.rb.tt @@ -0,0 +1,11 @@ +require_relative '../config/environment' +require 'rails/test_help' + +class ActiveSupport::TestCase +<% unless options[:skip_active_record] -%> + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. + fixtures :all + +<% end -%> + # Add more helper methods to be used by all tests here... +end |