test/test-odt.rb in chupa-text-decomposer-libreoffice-1.0.0 vs test/test-odt.rb in chupa-text-decomposer-libreoffice-1.0.1

- old
+ new

@@ -78,11 +78,12 @@ def test_creator assert_equal(["Writer"], decompose("creator")) end def test_producer - assert_equal(["LibreOffice 4.1"], decompose("producer")) + assert_equal(["LibreOffice X.Y"], + normalize_producers(decompose("producer"))) end def test_creation_date assert_equal([nil], decompose("creation_date")) end @@ -95,21 +96,21 @@ end end sub_test_case("one page") do def test_body - assert_equal(["Page1"], decompose.collect(&:body)) + assert_equal(["Page1\n"], decompose.collect(&:body)) end private def decompose super(fixture_path("one-page.odt")) end end sub_test_case("multi pages") do def test_body - assert_equal([<<-BODY.chomp], decompose.collect(&:body)) + assert_equal([<<-BODY], decompose.collect(&:body)) Page1 Page2 BODY end