Sha256: e438296d3b8dcc5c53497f4499a4b416d3cc43f38e0630f7e0625e9e33c1b6de
Contents?: true
Size: 400 Bytes
Versions: 5
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helper' describe "OandaAPI::Client::JsonParser" do it "deserializes json using symbolized keys" do [ ["{\"a\":[{\"b\":{\"3\":3}}]}", { :a => [:b => { :"3" => 3 }] }], [ "\r\n \r\n {\"a\":\"a\"} \r\n ", { :a => "a"}] ].each do |serialized, deserialized| expect(OandaAPI::Client::JsonParser.call serialized, :json).to eq(deserialized) end end end
Version data entries
5 entries across 5 versions & 1 rubygems