test/hexapdf/content/test_canvas.rb in hexapdf-0.12.3 vs test/hexapdf/content/test_canvas.rb in hexapdf-0.13.0
- old
+ new
@@ -529,11 +529,11 @@
it "invokes the operator implementation when radius == 0" do
assert_operator_invoked(:re, 5, 10, 15, 20) { @canvas.rectangle(5, 10, 15, 20) }
end
it "invokes the polygon method when radius != 0" do
- args = [0, 0, 10, 0, 10, 10, 0, 10, radius: 5]
+ args = [0, 0, 10, 0, 10, 10, 0, 10, {radius: 5}]
assert_method_invoked(@canvas, :polygon, args) do
@canvas.rectangle(0, 0, 10, 10, radius: 5)
end
end
@@ -629,11 +629,11 @@
end
end
describe "circle" do
it "uses arc for the hard work" do
- assert_method_invoked(@canvas, :arc, [5, 6, a: 7]) do
+ assert_method_invoked(@canvas, :arc, [5, 6, {a: 7}]) do
@canvas.graphics_object = :path
@canvas.circle(5, 6, 7)
end
end
@@ -649,10 +649,10 @@
end
end
describe "ellipse" do
it "uses arc for the hard work" do
- assert_method_invoked(@canvas, :ellipse, [5, 6, a: 7, b: 5, inclination: 10]) do
+ assert_method_invoked(@canvas, :ellipse, [5, 6, {a: 7, b: 5, inclination: 10}]) do
@canvas.ellipse(5, 6, a: 7, b: 5, inclination: 10)
end
end
it "serializes correctly" do