Permalink
Browse files

Fixed a broken AM test. I'm unsure how this passed before.

  • Loading branch information...
1 parent 900a2d3 commit 46bf2f04a87c56826963958eaf370d9262526af0 Carlhuda committed Mar 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionmailer/test/old_base/asset_host_test.rb
@@ -42,7 +42,7 @@ def test_asset_host_as_one_arguement_proc
end
def test_asset_host_as_two_arguement_proc
- ActionController::Base.asset_host = Proc.new {|source,request|
+ ActionController::Base.config.asset_host = Proc.new {|source,request|
@deepak

deepak Sep 13, 2012

Contributor

inside this test, ActionController::Base.config.asset_host is never called

@deepak

deepak Sep 13, 2012

Contributor

also request.ssl? seems to have been removed ?

@rafaelfranca

rafaelfranca Sep 13, 2012

Owner

I think it is called because image source is using the host specified here. request.ssl? we need to investigate

if request && request.ssl?
"https://www.example.com"
else

0 comments on commit 46bf2f0

Please sign in to comment.