Sha256: faf253d3f573ce2d7f806e6306450f7dfed79bf1d70eae95270219358349ec61
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
require_relative '../../../../test_helper' require_relative '../../../../../lib/vedeu/support/parsing/json_parser' module Vedeu describe JSONParser do describe '.parse' do it 'returns a hash when the JSON is valid' do JSONParser.parse("{\"some\": \"JSON\"}") .must_be_instance_of(Hash) end it 'returns an empty hash when the JSON is invalid' do JSONParser.parse("{ invalid JSON }").must_be_instance_of(Hash) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.32 | test/lib/vedeu/support/parsing/json_parser_test.rb |