diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-10-14 11:59:00 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-10-14 13:36:41 -0700 |
commit | a41c6c35cadf75bfd4bf0a17113ae37d628896e8 (patch) | |
tree | 2fd868ac1a5a4674f5a6960c931b96d6cbda48f4 /actionpack/test/template/url_helper_test.rb | |
parent | a8dc9fd27b845193fd209a249e084f993a10c19d (diff) | |
download | rails-a41c6c35cadf75bfd4bf0a17113ae37d628896e8.tar.gz rails-a41c6c35cadf75bfd4bf0a17113ae37d628896e8.tar.bz2 rails-a41c6c35cadf75bfd4bf0a17113ae37d628896e8.zip |
Start adding configuration to ActionView instead of using constants.
By using config rather than hardcoded constants, we can evolve the
configuration system over time (we'd just need to update the config
method with more robust capabilities and all consumers would get
the capabilities with no code changes)
Diffstat (limited to 'actionpack/test/template/url_helper_test.rb')
-rw-r--r-- | actionpack/test/template/url_helper_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb index 7f6ebc56b7..111a7619b5 100644 --- a/actionpack/test/template/url_helper_test.rb +++ b/actionpack/test/template/url_helper_test.rb @@ -5,6 +5,9 @@ require 'controller/fake_controllers' RequestMock = Struct.new("Request", :request_uri, :protocol, :host_with_port, :env) class UrlHelperTest < ActionView::TestCase + include ActiveSupport::Configurable + DEFAULT_CONFIG = ActionView::DEFAULT_CONFIG + def setup super @controller = Class.new do |