aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael@franca.dev>2019-08-02 15:02:59 -0400
committerRafael Mendonça França <rafael@franca.dev>2019-08-02 15:02:59 -0400
commit1c7207a22faca3f07ee9aee1dc00a5b01286de2f (patch)
treed51ddb4b0c50369e81dc67191fb914f523ac522b
parentac7c9381f02446bb4e1681ad66cd69d8abe23594 (diff)
downloadrails-1c7207a22faca3f07ee9aee1dc00a5b01286de2f.tar.gz
rails-1c7207a22faca3f07ee9aee1dc00a5b01286de2f.tar.bz2
rails-1c7207a22faca3f07ee9aee1dc00a5b01286de2f.zip
1.hour needs core_ext to work
Usually the application requires the entire active support at load time but the configuration happens before it is loaded. For that reason we need to require the core_ext that we want to use in this file.
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt
index c66e349442..41dabb87df 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt
+++ b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt
@@ -3,6 +3,8 @@
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
+require "active_support/core_ext/integer/time"
+
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
<%# Spring executes the reloaders when files change. %>