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
vanity-1.7.1 vendor/ruby/1.9.1/gems/mongo-1.3.1/test/bson/binary_test.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/bson-1.3.1/test/bson/binary_test.rb
jonbell-mongo-1.3.1.2 test/bson/binary_test.rb
mongo-lyon-1.2.4 test/bson/binary_test.rb
bson-1.3.1-jruby test/bson/binary_test.rb
bson-1.3.1 test/bson/binary_test.rb
mongo-1.3.1 test/bson/binary_test.rb
bson-1.3.0-jruby test/bson/binary_test.rb
bson-1.3.0 test/bson/binary_test.rb
mongo-1.3.0 test/bson/binary_test.rb
bson-1.3.0.rc0-jruby test/bson/binary_test.rb
bson-1.3.0.rc0 test/bson/binary_test.rb
mongo-1.3.0.rc0 test/bson/binary_test.rb
bson-1.2.4-jruby test/bson/binary_test.rb
bson-1.2.4 test/bson/binary_test.rb
mongo-1.2.4 test/bson/binary_test.rb
bson-1.2.3-jruby test/bson/binary_test.rb
bson-1.2.3 test/bson/binary_test.rb
mongo-1.2.3 test/bson/binary_test.rb
mongo-1.2.2 test/bson/binary_test.rb