require 'test/unit' require File.expand_path(File.join(File.dirname(__FILE__), '../../../../config/environment.rb')) class InlineCssTest < Test::Unit::TestCase def test_should_inline_css body = '
hi
' part = ActionMailer::Part.new(:content_type => "text/html", :body => body) expected = '
hi
' assert_equal expected, part.body end end