DEV: Replace custom Onebox symbolize_keys implementation with ActiveSupport (#23828)

We have a custom implementation of #symbolize_keys in our Onebox helpers. This is likely a legacy from when Onebox was a standalone gem. This change replaces all usages with either #deep_symbolize_keys from ActiveSupport, or appropriate option to the JSON parser gem used.
This commit is contained in:
Ted Johansson
2023-10-09 09:32:09 +02:00
committed by GitHub
parent c970cbeac4
commit b2a5f5802a
8 changed files with 7 additions and 18 deletions

View File

@ -72,7 +72,7 @@ RSpec.describe Onebox::Engine::GoogleMapsOnebox do
end
end
let(:data) { Onebox::Helpers.symbolize_keys(onebox.send(:data)) }
let(:data) { onebox.send(:data).deep_symbolize_keys }
let(:link) { |example| URLS[example.metadata[:urltype] || :short][:test] }
include_context "an engine", urltype: :short