Sha256: da4355256a6ffad98d7895d79f85bac80e0dc03b630e26fcc34494a6d12a3243
Contents?: true
Size: 398 Bytes
Versions: 130
Compression:
Stored size: 398 Bytes
Contents
require './test/bson/test_helper' require 'rubygems' require 'json' class JSONTest < Test::Unit::TestCase # This test passes when run by itself but fails # when run as part of the whole test suite. def test_object_id_as_json warn "Pending test object id as json" #id = BSON::ObjectId.new #obj = {'_id' => id} #assert_equal "{\"_id\":#{id.to_json}}", obj.to_json end end
Version data entries
130 entries across 79 versions & 5 rubygems