diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-21 13:19:21 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-21 13:19:21 +0100 |
commit | 7fe4ca3253e902c67d4765eeece285ffc49f3d89 (patch) | |
tree | a0aae8643a484e6b85b50e04ff4404e15b25694e /railties/test | |
parent | 8f97e9d19abf02b33c5f7c0c1f1d5daf13e28893 (diff) | |
download | rails-7fe4ca3253e902c67d4765eeece285ffc49f3d89.tar.gz rails-7fe4ca3253e902c67d4765eeece285ffc49f3d89.tar.bz2 rails-7fe4ca3253e902c67d4765eeece285ffc49f3d89.zip |
Add a test for default_url_options in AM.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/initializers/frameworks_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb index 1e7b9c9997..94d3505518 100644 --- a/railties/test/application/initializers/frameworks_test.rb +++ b/railties/test/application/initializers/frameworks_test.rb @@ -32,6 +32,17 @@ module ApplicationTests ActionMailer::Base.view_paths.include?(File.expand_path("app/views", app_path)) end + test "allows me to configure default url options for ActionMailer" do + app_file "config/environments/development.rb", <<-RUBY + Rails::Application.configure do + config.action_mailer.default_url_options = { :host => "test.rails" } + end + RUBY + + require "#{app_path}/config/environment" + assert "test.rails", ActionMailer::Base.default_url_options[:host] + end + # AS test "if there's no config.active_support.bare, all of ActiveSupport is required" do use_frameworks [] |