test/hexapdf/test_importer.rb in hexapdf-0.46.0 vs test/hexapdf/test_importer.rb in hexapdf-0.47.0

- old
+ new

@@ -145,9 +145,16 @@ assert_nil(obj[:catalog]) assert_nil(obj[:pages]) end + it "handles null values correctly" do + @source.add(@hash) + @source.delete(@hash) + obj = @importer.import(@obj) + assert_nil(obj[:hash]) + end + it "imports Page objects correctly by copying the inherited values" do page = @importer.import(@source.pages[0]) assert_equal(90, page[:Rotate]) end