Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8820

Show
Ignore:
Timestamp:
02/07/08 23:10:01 (7 months ago)
Author:
bitsweat
Message:

Remove empty .rhtml templates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionmailer/test/mail_service_test.rb

    r8781 r8820  
    768768  def test_implicitly_multipart_messages 
    769769    mail = TestMailer.create_implicitly_multipart_example(@recipient) 
    770     assert_equal 6, mail.parts.length 
     770    assert_equal 3, mail.parts.length 
    771771    assert_equal "1.0", mail.mime_version 
    772772    assert_equal "multipart/alternative", mail.content_type 
    773773    assert_equal "text/yaml", mail.parts[0].content_type 
    774774    assert_equal "utf-8", mail.parts[0].sub_header("content-type", "charset") 
    775     assert_equal "text/plain", mail.parts[2].content_type 
     775    assert_equal "text/plain", mail.parts[1].content_type 
     776    assert_equal "utf-8", mail.parts[1].sub_header("content-type", "charset") 
     777    assert_equal "text/html", mail.parts[2].content_type 
    776778    assert_equal "utf-8", mail.parts[2].sub_header("content-type", "charset") 
    777     assert_equal "text/html", mail.parts[4].content_type 
    778     assert_equal "utf-8", mail.parts[4].sub_header("content-type", "charset") 
    779779  end 
    780780 
    781781  def test_implicitly_multipart_messages_with_custom_order 
    782782    mail = TestMailer.create_implicitly_multipart_example(@recipient, nil, ["text/yaml", "text/plain"]) 
    783     assert_equal 6, mail.parts.length 
     783    assert_equal 3, mail.parts.length 
    784784    assert_equal "text/html", mail.parts[0].content_type 
    785     assert_equal "text/plain", mail.parts[2].content_type 
    786     assert_equal "text/yaml", mail.parts[4].content_type 
     785    assert_equal "text/plain", mail.parts[1].content_type 
     786    assert_equal "text/yaml", mail.parts[2].content_type 
    787787  end 
    788788