From 180534d71d5d920de4dda0405a77d3524bb2912e Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 8 Jan 2025 03:56:56 -0700 Subject: [PATCH] replace JSON.load with JSON.parse --- spec/diagram_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/diagram_spec.rb b/spec/diagram_spec.rb index aee20e696..3d90d6b65 100644 --- a/spec/diagram_spec.rb +++ b/spec/diagram_spec.rb @@ -41,7 +41,7 @@ (expect Pathname.new output_file 'images/pdfwidth-test.png').to exist images = pdf.images (expect images).to have_size 1 - image_data = JSON.load (Pathname.new output_file '.asciidoctor/diagram/pdfwidth-test.png.cache').read + image_data = JSON.parse (Pathname.new output_file '.asciidoctor/diagram/pdfwidth-test.png.cache').read (expect images[0][:intrinsic_width].to_f).to eql image_data['width'].to_f (expect images[0][:width].to_f).to eql 72.0 end