Skip to content

Commit

Permalink
Fixes for working with 1.9.1-head
Browse files Browse the repository at this point in the history
  • Loading branch information
mikel committed Dec 17, 2009
1 parent 186cd7b commit 418639b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 24 deletions.
2 changes: 1 addition & 1 deletion actionmailer/lib/action_mailer.rb
Expand Up @@ -54,5 +54,5 @@ module Net
end


gem 'mail', '>= 1.3.0'
gem 'mail', '>= 1.3.2'
require 'mail'
1 change: 0 additions & 1 deletion actionmailer/lib/action_mailer/base.rb
Expand Up @@ -258,7 +258,6 @@ class Base
include AbstractController::Layouts

include AbstractController::Helpers
helper ActionMailer::MailHelper

if Object.const_defined?(:ActionController)
include ActionController::UrlWriter
Expand Down
19 changes: 0 additions & 19 deletions actionmailer/lib/action_mailer/mail_helper.rb

This file was deleted.

4 changes: 2 additions & 2 deletions actionmailer/test/mail_service_test.rb
Expand Up @@ -534,7 +534,7 @@ def test_from_without_name_for_smtp
assert_not_nil mail
mail, from, to = mail

assert_equal 'system@loudthinking.com', from.to_s
assert_equal 'system@loudthinking.com', from.decoded
end

def test_from_with_name_for_smtp
Expand All @@ -545,7 +545,7 @@ def test_from_with_name_for_smtp
assert_not_nil mail
mail, from, to = mail

assert_equal 'system@loudthinking.com', from.to_s
assert_equal 'system@loudthinking.com', from.addresses.first
end

def test_reply_to
Expand Down
8 changes: 7 additions & 1 deletion actionmailer/test/url_test.rb
Expand Up @@ -69,10 +69,16 @@ def test_signed_up_with_url
created = nil
assert_nothing_raised { created = TestMailer.create_signed_up_with_url(@recipient) }
assert_not_nil created

expected.message_id = '<123@456>'
created.message_id = '<123@456>'
assert_equal expected.encoded, created.encoded

assert_nothing_raised { TestMailer.deliver_signed_up_with_url(@recipient) }
assert_not_nil ActionMailer::Base.deliveries.first
assert_equal expected.encoded, ActionMailer::Base.deliveries.first.encoded
delivered = ActionMailer::Base.deliveries.first

delivered.message_id = '<123@456>'
assert_equal expected.encoded, delivered.encoded
end
end

0 comments on commit 418639b

Please sign in to comment.