aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-01-23 13:15:15 -0500
committerGitHub <noreply@github.com>2019-01-23 13:15:15 -0500
commitd1456e3ad52cdab6d2fa07ef3f239631a20a9a1f (patch)
tree670c52ede3e7d169fb89893d6f01f245c8fa74fd /railties/test/application
parent3aa094c52773f769380dc88710ad581bff92014d (diff)
parent4dfb1a39611d97f83dd7431261128def7dbca5fe (diff)
downloadrails-d1456e3ad52cdab6d2fa07ef3f239631a20a9a1f.tar.gz
rails-d1456e3ad52cdab6d2fa07ef3f239631a20a9a1f.tar.bz2
rails-d1456e3ad52cdab6d2fa07ef3f239631a20a9a1f.zip
Merge pull request #34993 from schuetzm/allow-subdomains-of-localhost
Subdomains of localhost are safe against DNS rebinding
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/configuration_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb
index 3e979ea20d..9da3956dda 100644
--- a/railties/test/application/configuration_test.rb
+++ b/railties/test/application/configuration_test.rb
@@ -2289,6 +2289,11 @@ module ApplicationTests
MESSAGE
end
+ test "the host whitelist includes .localhost in development" do
+ app "development"
+ assert_includes Rails.application.config.hosts, ".localhost"
+ end
+
private
def force_lazy_load_hooks
yield # Tasty clarifying sugar, homie! We only need to reference a constant to load it.