test/test_text.rb in mime_builder-0.0.1 vs test/test_text.rb in mime_builder-0.0.2
- old
+ new
@@ -1,19 +1,19 @@
require './test/test_base.rb'
class MIMEBuilderTextTest < Test::Unit::TestCase
-
- def test_file_one
- #assert_equal "bXlfYXBwX2tleTpteV9hcHBfc2VjcmV0", @rcsdk.send(:get_api_key)
- end
-
def test_contenttype
test_text = 'Hello world!'
filepart = MIMEBuilder::Text.new(test_text)
assert_equal 'text/plain', filepart.mime.headers.get('Content-Type')
assert_equal test_text, filepart.mime.body.to_s
end
+ def test_content_id_disable
+ filepart = MIMEBuilder::Text.new 'Hello world!', :content_id_disable => true
+
+ assert_equal nil, filepart.mime.headers.get('Content-Id')
+ end
end
\ No newline at end of file