Sha256: 8f3ffc32e21c97acf9272adbacdd9db942f3866ab9c598fb691639e2cb72a39c
Contents?: true
Size: 406 Bytes
Versions: 28
Compression:
Stored size: 406 Bytes
Contents
# frozen_string_literal = true RSpec.describe :from_json do link :from_json, from: :ree_json it { expect(from_json("{\"id\":1}", symbol_keys: true)).to eq({id: 1}) } it { result = from_json("{\":id\":{\"^o\":\"Object\"}}", mode: :object) expect(result[:id]).to be_a(Object) } it { expect{from_json("{213: \"123\"}")}.to raise_error(ReeJson::FromJson::ParseJsonError) } end
Version data entries
28 entries across 28 versions & 1 rubygems