Sha256: 954bbd5db85429b2dd5dbadeccb6cb699dab79ff365213645351dd2eb5fc7150
Contents?: true
Size: 497 Bytes
Versions: 17
Compression:
Stored size: 497 Bytes
Contents
require 'spec_helper' describe GnipApi::JsonParser do describe ".parse" do it 'parses a JSON object' do output = GnipApi::JsonParser.new.parse('{"key":"value","key2":"value2"}') expect(output).to eq({'key' => 'value', 'key2' => 'value2'}) end end describe ".encode" do it 'generates a JSON object' do output = GnipApi::JsonParser.new.encode({:key => 'value', :key2 => 'value2'}) expect(output).to eq('{"key":"value","key2":"value2"}') end end end
Version data entries
17 entries across 17 versions & 1 rubygems