Sha256: 98155ff918175ef7903adbf47d665752dffd4d79ac2a83ad9bbd7dae30ac6e57
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
require 'test/test_helper' require 'rubygems' require 'json' class JSONTest < Test::Unit::TestCase include Mongo include BSON def assert_json(obj, json) assert_equal json, obj.to_json assert_equal obj, obj.class.json_create(json) end def test_json id = ObjectID.new assert_json id, "{\"$oid\": \"#{id}\"}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bson-1.0.3 | test/mongo_bson/json_test.rb |