Add a test for default_url_options in AM.

This commit is contained in:
José Valim
2010-02-21 13:19:21 +01:00
parent 8f97e9d19a
commit 7fe4ca3253

View File

@@ -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 []