mongo-ruby-driver/test/binary_test.rb

14 lines
294 B
Ruby
Raw Normal View History

2010-02-08 18:48:18 +00:00
# encoding:utf-8
require 'test/test_helper'
2010-02-20 00:17:38 +00:00
context "Inspecting" do
setup do
@data = ("THIS IS BINARY " * 50).unpack("c*")
end
2010-02-08 18:48:18 +00:00
2010-02-20 00:17:38 +00:00
should "not display actual data" do
binary = Mongo::Binary.new(@data)
assert_equal "<Mongo::Binary:#{binary.object_id}>", binary.inspect
2010-02-08 18:48:18 +00:00
end
end