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

Version Path
alephant-0.0.9.9.1-java spec/parser_spec.rb
alephant-0.0.9.9-java spec/parser_spec.rb
alephant-0.0.9.8-java spec/parser_spec.rb
alephant-0.0.9.7-java spec/parser_spec.rb
alephant-0.0.9.6-java spec/parser_spec.rb
alephant-0.0.9.5-java spec/parser_spec.rb
alephant-0.0.9.4-java spec/parser_spec.rb
alephant-0.0.9.3-java spec/parser_spec.rb
alephant-0.0.9.2-java spec/parser_spec.rb
alephant-0.0.9.1-java spec/parser_spec.rb
alephant-0.0.9-java spec/parser_spec.rb
alephant-0.0.8.2-java spec/parser_spec.rb