RSpec.describe Magick::Draw, '#path' do
  it 'works' do
    draw = described_class.new
    image = Magick::Image.new(200, 200)

    draw.path('M110,100 h-75 a75,75 0 1,0 75,-75 z')
    expect(draw.inspect).to eq('path "M110,100 h-75 a75,75 0 1,0 75,-75 z"')
    expect { draw.draw(image) }.not_to raise_error

    expect { draw.path(Object.new) }.to raise_error(TypeError)
  end
end
