Skip to content

Commit

Permalink
Fixes some ActionMailer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino authored and fxn committed Aug 14, 2010
1 parent b95d6e8 commit 9dc88ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion actionmailer/test/old_base/mail_render_test.rb
Expand Up @@ -112,7 +112,7 @@ def test_inline_template

def test_file_template
mail = RenderMailer.file_template
assert_equal "Hello there, \n\nMr. test@localhost", mail.body.to_s.strip
assert_equal "Hello there,\n\nMr. test@localhost", mail.body.to_s.strip
end

def test_rxml_template
Expand Down
4 changes: 2 additions & 2 deletions actionmailer/test/old_base/mail_service_test.rb
Expand Up @@ -392,7 +392,7 @@ def test_signed_up
expected = new_mail
expected.to = @recipient
expected.subject = "[Signed up] Welcome #{@recipient}"
expected.body = "Hello there, \n\nMr. #{@recipient}"
expected.body = "Hello there,\n\nMr. #{@recipient}"
expected.from = "system@loudthinking.com"
expected.date = Time.now

Expand Down Expand Up @@ -420,7 +420,7 @@ def test_custom_template
expected = new_mail
expected.to = @recipient
expected.subject = "[Signed up] Welcome #{@recipient}"
expected.body = "Hello there, \n\nMr. #{@recipient}"
expected.body = "Hello there,\n\nMr. #{@recipient}"
expected.from = "system@loudthinking.com"
expected.date = Time.local(2004, 12, 12)

Expand Down
2 changes: 1 addition & 1 deletion actionmailer/test/old_base/url_test.rb
Expand Up @@ -68,7 +68,7 @@ def test_signed_up_with_url
expected = new_mail
expected.to = @recipient
expected.subject = "[Signed up] Welcome #{@recipient}"
expected.body = "Hello there, \n\nMr. #{@recipient}. Please see our greeting at http://example.com/welcome/greeting http://www.basecamphq.com/welcome\n\n<img alt=\"Somelogo\" src=\"/images/somelogo.png\" />"
expected.body = "Hello there,\n\nMr. #{@recipient}. Please see our greeting at http://example.com/welcome/greeting http://www.basecamphq.com/welcome\n\n<img alt=\"Somelogo\" src=\"/images/somelogo.png\" />"
expected.from = "system@loudthinking.com"
expected.date = Time.local(2004, 12, 12)

Expand Down

0 comments on commit 9dc88ab

Please sign in to comment.