Sha256: bd8e75aad9227c08c68a024d435296c7400021e6e4635dba34319a9969a57820

Contents?: true

Size: 399 Bytes

Versions: 95

Compression:

Stored size: 399 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

95 entries across 49 versions & 3 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb
classiccms-0.7.5 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.7.4 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.7.4 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb
classiccms-0.7.3 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb
classiccms-0.7.3 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.7.2 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb
classiccms-0.7.2 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.7.1 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.7.1 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb
classiccms-0.7.0 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.7.0 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb
classiccms-0.6.9 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.6.9 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb
classiccms-0.6.8 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb
classiccms-0.6.8 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.6.7 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.6.7 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb
classiccms-0.6.6 vendor/bundle/gems/bson-1.6.2/test/bson/json_test.rb
classiccms-0.6.6 vendor/bundle/gems/mongo-1.6.2/test/bson/json_test.rb