Sha256: f431833f6d1e77785005e8fd8f8d82cbf046235751fe7250af4fb4ef8bc3033d

Contents?: true

Size: 361 Bytes

Versions: 10

Compression:

Stored size: 361 Bytes

Contents

# encoding:utf-8
require './test/bson/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

10 entries across 10 versions & 3 rubygems

Version Path
jmongo-1.1.5 test/bson/binary_test.rb
jmongo-1.1.4 test/bson/binary_test.rb
jmongo-1.1.3 test/bson/binary_test.rb
bson-1.4.1-jruby test/bson/binary_test.rb
jmongo-1.1.2 test/bson/binary_test.rb
jmongo-1.1.1 test/bson/binary_test.rb
jmongo-1.1.0 test/bson/binary_test.rb
bson-1.4.0-jruby test/bson/binary_test.rb
bson-1.4.0 test/bson/binary_test.rb
mongo-1.4.0 test/bson/binary_test.rb