aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-11-13 15:23:28 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-11-13 15:23:28 -0500
commit8dd76a7a6ff1bb7105beabb8f834ca54ab1e5fc2 (patch)
tree9830dad2b5514f9c1600036a81433266ddec3250 /railties/test
parent705cf47033afabf4530a209f907ff4bf35acf2c2 (diff)
downloadrails-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/test')
-rw-r--r--railties/test/generators/generators_test_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/generators/generators_test_helper.rb b/railties/test/generators/generators_test_helper.rb
index cb5d8da7b1..ad2a55f496 100644
--- a/railties/test/generators/generators_test_helper.rb
+++ b/railties/test/generators/generators_test_helper.rb
@@ -43,9 +43,9 @@ module GeneratorsTestHelper
end
def copy_routes
- routes = File.expand_path("../../lib/rails/generators/rails/app/templates/config/routes.rb", __dir__)
+ routes = File.expand_path("../../lib/rails/generators/rails/app/templates/config/routes.rb.tt", __dir__)
destination = File.join(destination_root, "config")
FileUtils.mkdir_p(destination)
- FileUtils.cp routes, destination
+ FileUtils.cp routes, File.join(destination, "routes.rb")
end
end