Sha256: e28510e7a5114279676a0de650db55f4eb1560c7e7a510c98e74b2e19548a116

Contents?: true

Size: 418 Bytes

Versions: 12

Compression:

Stored size: 418 Bytes

Contents

require File.expand_path("../test_helper", __FILE__)
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

12 entries across 12 versions & 2 rubygems

Version Path
mongo-1.7.1 test/bson/json_test.rb
bson-1.7.1-java test/bson/json_test.rb
bson-1.7.1 test/bson/json_test.rb
mongo-1.7.0 test/bson/json_test.rb
bson-1.7.0-java test/bson/json_test.rb
bson-1.7.0 test/bson/json_test.rb
mongo-1.7.0.rc0 test/bson/json_test.rb
bson-1.7.0.rc0-java test/bson/json_test.rb
bson-1.7.0.rc0 test/bson/json_test.rb
mongo-1.6.4 test/bson/json_test.rb
bson-1.6.4 test/bson/json_test.rb
bson-1.6.4-jruby test/bson/json_test.rb