aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorSimon Jefford <simon.jefford@gmail.com>2010-07-27 15:39:28 +0100
committerwycats <wycats@gmail.com>2010-09-09 18:26:35 -0700
commit7fae0aa4ac116bcbf522a9a4f19972c653d366fa (patch)
treebd10694c9fad90d35b44150168c3d1df03bbb6b2 /railties/test/application
parent5949e705f496c78fa125610d581a9339fa63da94 (diff)
downloadrails-7fae0aa4ac116bcbf522a9a4f19972c653d366fa.tar.gz
rails-7fae0aa4ac116bcbf522a9a4f19972c653d366fa.tar.bz2
rails-7fae0aa4ac116bcbf522a9a4f19972c653d366fa.zip
Add configuration option for tld length
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/initializers/frameworks_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb
index 6e9ceb6ef7..61340e82c3 100644
--- a/railties/test/application/initializers/frameworks_test.rb
+++ b/railties/test/application/initializers/frameworks_test.rb
@@ -65,6 +65,13 @@ module ApplicationTests
assert_equal ["notify"], Foo.action_methods
end
+ # AD
+ test "action_dispatch extensions are applied to ActionDispatch" do
+ add_to_config "config.action_dispatch.tld_length = 2"
+ require "#{app_path}/config/environment"
+ assert_equal 2, ActionDispatch::Http::URL.tld_length
+ end
+
# AS
test "if there's no config.active_support.bare, all of ActiveSupport is required" do
use_frameworks []