Sha256: cbc6d8f95cf7d85c46f2c8cb870fe7854088c24ae30c0952d0ecf981faabcdfe
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
require 'rubygems' require 'spec' dir = File.dirname(__FILE__) require File.expand_path("#{dir}/spec_helper") require File.expand_path("#{dir}/../lib/fjson") context "String when not supporting unicode and KCODE is not UTF8 json" do setup do JSON.support_unicode = true $KCODE = "" end specify "should let high values pass through when " + "not supporting unicode and KCODE is not UTF8" do val = [0xcf].pack("U") JSON.utf8_to_json(val).should_eql "\303\217" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fjson-0.1.1 | spec/string_when_not_supporting_unicode_and_kcode_is_not_utf8_json_spec.rb |