Sha256: 18496cbdd50746938b49dc5774e7669f0bc7e21a3c3898213bffd6ae4edd5d9a

Contents?: true

Size: 316 Bytes

Versions: 215

Compression:

Stored size: 316 Bytes

Contents

# encoding:utf-8
require './test/bson/test_helper'

class BinaryTest < Test::Unit::TestCase
  def setup
    @data = ("THIS IS BINARY " * 50).unpack("c*")
  end

  def test_do_not_display_binary_data
    binary = BSON::Binary.new(@data)
    assert_equal "<BSON::Binary:#{binary.object_id}>", binary.inspect
  end
end

Version data entries

215 entries across 72 versions & 4 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/bson-1.6.1/test/bson/binary_test.rb
classiccms-0.7.5 vendor/bundle/gems/bson-1.6.2/test/bson/binary_test.rb
classiccms-0.7.5 vendor/bundle/gems/mongo-1.6.2/test/bson/binary_test.rb
classiccms-0.7.5 vendor/bundle/gems/mongo-1.6.1/test/bson/binary_test.rb
classiccms-0.7.4 vendor/bundle/gems/mongo-1.6.1/test/bson/binary_test.rb
classiccms-0.7.4 vendor/bundle/gems/bson-1.6.1/test/bson/binary_test.rb
classiccms-0.7.4 vendor/bundle/gems/mongo-1.6.2/test/bson/binary_test.rb
classiccms-0.7.4 vendor/bundle/gems/bson-1.6.2/test/bson/binary_test.rb
classiccms-0.7.3 vendor/bundle/gems/bson-1.6.2/test/bson/binary_test.rb
classiccms-0.7.3 vendor/bundle/gems/mongo-1.6.1/test/bson/binary_test.rb
classiccms-0.7.3 vendor/bundle/gems/bson-1.6.1/test/bson/binary_test.rb
classiccms-0.7.3 vendor/bundle/gems/mongo-1.6.2/test/bson/binary_test.rb
classiccms-0.7.2 vendor/bundle/gems/bson-1.6.1/test/bson/binary_test.rb
classiccms-0.7.2 vendor/bundle/gems/bson-1.6.2/test/bson/binary_test.rb
classiccms-0.7.2 vendor/bundle/gems/mongo-1.6.1/test/bson/binary_test.rb
classiccms-0.7.2 vendor/bundle/gems/mongo-1.6.2/test/bson/binary_test.rb
classiccms-0.7.1 vendor/bundle/gems/bson-1.6.1/test/bson/binary_test.rb
classiccms-0.7.1 vendor/bundle/gems/bson-1.6.2/test/bson/binary_test.rb
classiccms-0.7.1 vendor/bundle/gems/mongo-1.6.2/test/bson/binary_test.rb
classiccms-0.7.1 vendor/bundle/gems/mongo-1.6.1/test/bson/binary_test.rb