test/unit/generator/pdf/document/graphics/test_attributes.rb in thinreports-0.7.6 vs test/unit/generator/pdf/document/graphics/test_attributes.rb in thinreports-0.7.7

- old
+ new

@@ -54,9 +54,15 @@ def test_text_valign_should_return_converted_value_type_of_Symbol valigns = ['top', 'center', 'bottom', nil] assert_equal valigns.map {|a| @pdf.text_valign(a) }, [:top, :center, :bottom, :top] end + + def test_text_word_wrap + assert_equal @pdf.text_word_wrap('break-word'), :break_word + assert_equal @pdf.text_word_wrap('none'), :none + assert_equal @pdf.text_word_wrap(''), :none + end def test_extract_base64_string base64 = 'data:image/png;base64,iVBORw0KGg1+/AAy/plYlzil' assert_equal @pdf.extract_base64_string(base64), 'iVBORw0KGg1+/AAy/plYlzil'