Skip to content

Commit

Permalink
Fix warning about using JSON.load
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Dec 28, 2024
1 parent 853f59a commit 6a4a754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/monads_serialization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a4a754

Please sign in to comment.