diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-04 01:01:21 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-03-04 01:01:21 -0800 |
commit | ad2e6ee4ec5cc6c6bc5f11bfb875e582dbe55468 (patch) | |
tree | 5833055757c2a6bd882ea827a10bb6a39ab801ae /actionmailer | |
parent | 9eddc8544417323dcd8460026027c3359b2ad717 (diff) | |
download | rails-ad2e6ee4ec5cc6c6bc5f11bfb875e582dbe55468.tar.gz rails-ad2e6ee4ec5cc6c6bc5f11bfb875e582dbe55468.tar.bz2 rails-ad2e6ee4ec5cc6c6bc5f11bfb875e582dbe55468.zip |
Fix a bunch of failing AP / AM specs created from the previous AbstractController configuration refactor.
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/test/old_base/asset_host_test.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/actionmailer/test/old_base/asset_host_test.rb b/actionmailer/test/old_base/asset_host_test.rb index aa9cfd88dd..36f0afcfd6 100644 --- a/actionmailer/test/old_base/asset_host_test.rb +++ b/actionmailer/test/old_base/asset_host_test.rb @@ -21,13 +21,17 @@ class AssetHostTest < Test::Unit::TestCase end def test_asset_host_as_string - ActionController::Base.asset_host = "http://www.example.com" + ActionMailer::Base.configure do |c| + c.asset_host = "http://www.example.com" + c.assets_dir = File.dirname(__FILE__) + end + mail = AssetHostMailer.email_with_asset assert_equal "<img alt=\"Somelogo\" src=\"http://www.example.com/images/somelogo.png\" />", mail.body.to_s.strip end def test_asset_host_as_one_arguement_proc - ActionController::Base.asset_host = Proc.new { |source| + AssetHostMailer.config.asset_host = Proc.new { |source| if source.starts_with?('/images') "http://images.example.com" else |