From 6a4a75413851832a90afae00c166fa22fe23d6ab Mon Sep 17 00:00:00 2001 From: Nikita Shilnikov Date: Sat, 28 Dec 2024 21:26:24 +0100 Subject: [PATCH] Fix warning about using JSON.load --- spec/integration/monads_serialization_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/monads_serialization_spec.rb b/spec/integration/monads_serialization_spec.rb index f66c511..06c20d0 100644 --- a/spec/integration/monads_serialization_spec.rb +++ b/spec/integration/monads_serialization_spec.rb @@ -15,7 +15,7 @@ } end - subject { JSON.load(JSON.dump(example_structure)) } # rubocop:disable Security/JSONLoad + subject { JSON.unsafe_load(JSON.dump(example_structure)) } it "should rebuild the example structure" do is_expected.to eql(example_structure)