test/hexapdf/content/test_canvas.rb in hexapdf-0.9.3 vs test/hexapdf/content/test_canvas.rb in hexapdf-0.10.0

- old
+ new

@@ -775,12 +775,12 @@ end end describe "xobject" do before do - @image = @doc.add(Subtype: :Image, Width: 10, Height: 5) + @image = @doc.add(Type: :XObject, Subtype: :Image, Width: 10, Height: 5) @image.source_path = File.join(TEST_DATA_DIR, 'images', 'gray.jpg') - @form = @doc.add(Subtype: :Form, BBox: [100, 50, 200, 100]) + @form = @doc.add(Type: :XObject, Subtype: :Form, BBox: [100, 50, 200, 100]) end it "can use any xobject specified via a filename" do xobject = @canvas.xobject(@image.source_path, at: [0, 0]) assert_equal(xobject, @page.resources.xobject(:XO1))