Sha256: 49eb764c68695a240ef88b868498dca411868ffc9f1992f1049fd0f6a241be8a

Contents?: true

Size: 335 Bytes

Versions: 12

Compression:

Stored size: 335 Bytes

Contents

# encoding:utf-8
require File.expand_path("../test_helper", __FILE__)

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

12 entries across 12 versions & 2 rubygems

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