Sha256: 6fddcb63b8fd4aacdd7773473c8117fa9c25c65eb793975409bca77d5684bfe5

Contents?: true

Size: 356 Bytes

Versions: 49

Compression:

Stored size: 356 Bytes

Contents

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

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

    should "not display actual data" do
      binary = BSON::Binary.new(@data)
      assert_equal "<BSON::Binary:#{binary.object_id}>", binary.inspect
    end
  end
end

Version data entries

49 entries across 48 versions & 5 rubygems

Version Path
bson-1.2.2-jruby test/bson/binary_test.rb
bson-1.2.2 test/bson/binary_test.rb
mongo-1.2.1 test/bson/binary_test.rb
bson-1.2.1-jruby test/bson/binary_test.rb
bson-1.2.1 test/bson/binary_test.rb
mongo-1.2.0 test/bson/binary_test.rb
bson-1.2.0-jruby test/bson/binary_test.rb
bson-1.2.0 test/bson/binary_test.rb
mongo-1.2.rc2 test/bson/binary_test.rb
bson-1.2.rc2-jruby test/bson/binary_test.rb
bson-1.2.rc2 test/bson/binary_test.rb
mongo-1.2.rc1 test/bson/binary_test.rb
bson-1.2.rc1 test/bson/binary_test.rb
bson-1.2.rc1-jruby test/bson/binary_test.rb
mongo-1.2.rc0 test/bson/binary_test.rb
bson-1.2.rc0-jruby test/bson/binary_test.rb
bson-1.2.rc0 test/bson/binary_test.rb
mongo-1.1.5 test/bson/binary_test.rb
bson-1.1.5 test/bson/binary_test.rb
bson-1.1.4 test/bson/binary_test.rb