Changeset 4903
- Timestamp:
- 09/02/06 19:35:55 (2 years ago)
- Files:
-
- trunk/actionmailer/test/mail_service_test.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionmailer/test/mail_service_test.rb
r4523 r4903 215 215 from "test@example.com" 216 216 content_type "multipart/mixed" 217 part :content_type => "multipart/alternative", :content_disposition => "inline" do |p|217 part :content_type => "multipart/alternative", :content_disposition => "inline", :headers => { "foo" => "bar" } do |p| 218 218 p.part :content_type => "text/plain", :body => "test text\nline #2" 219 219 p.part :content_type => "text/html", :body => "<b>test</b> HTML<br/>\nline #2" … … 297 297 assert_equal "multipart/mixed", created.content_type 298 298 assert_equal "multipart/alternative", created.parts.first.content_type 299 assert_equal "bar", created.parts.first.header['foo'].to_s 299 300 assert_equal "text/plain", created.parts.first.parts.first.content_type 300 301 assert_equal "text/html", created.parts.first.parts[1].content_type