mongo-ruby-driver/test/mongo_bson/binary_test.rb
2010-04-05 11:07:01 -04:00

16 lines
354 B
Ruby

# 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