Sha256: c0fc96ca91476adaa85fc38b37d70097f91e45df22bc08860ff40f44bd30cf8d
Contents?: true
Size: 394 Bytes
Versions: 12
Compression:
Stored size: 394 Bytes
Contents
require 'spec_helper' describe Alephant::Parser do let (:instance) { Alephant::Parser } subject { Alephant::Parser } describe "parse(msg)" do it "returns parsed JSON with symbolized keys" do data = "{ \"foo\":\"bar\" }" instance = subject.new.parse data key = instance.keys[0] key.should be_a Symbol instance[key].should eq 'bar' end end end
Version data entries
12 entries across 12 versions & 1 rubygems